Skip to content

Releases: dranikpg/dto-mapper

Fix custom function usage with assignable types

27 Jan 17:29
Compare
Choose a tag to compare

Now conversion and inspection functions are skipped for fields of directly assignable or convertible types, so this operation can be performed if there is no other way to do the mapping

Please open an issue if it breaks your use case

Allow ignoring fields with struct tags

13 Dec 10:02
0b37c2e
Compare
Choose a tag to compare

Thanks to @Osendo for this feature! 🔥

type Order struct {
	Id string

	json.Marshaler   `dto:"ignore"` // ignored
	json.Unmarshaler `dto:"ignore"` // and this as well
}

Small pointer update

21 Jun 21:03
Compare
Choose a tag to compare

dto-mapper now supports mapping pointers of arbitrary types and initializing nil values upfront. See the TestPointerCases testcase for examples.

This closes #1