You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add support for flexible defaults encoding (#1652)
* feat: Add support for more flexible defaults encoding
* Flip the condition
* Add skipIfEmptyCollection variants
* tweaks for @deprecated annotation
* Add empty line after header
* Apply review comments
* Rename to FieldSkipCompiler
* Mark explicitDefaultsEncoding as deprecated
* Create monoid instance for FieldSkipCompiler
* Fix compilation for scala3
* Fix bijection and refinement
* Rewrite tests and convert FieldSkipCompiler instances to case objects
* Add lazy implementation
* Add test for recursive list
* Remove asInstanceOf
* cleanup
* Revert accidental rename
* Change shouldSkip to shouldRender
* Rewrite other occurences of explicitDefaults to new encoding
* Drop monoid instance for FieldSkipCompiler
* Rename FieldSkipCompiler to FieldFilter
* Replace combine method with regular boolean operations
* Rename rest of the methods to use new name
* More renames
* More concise formatting
* Remove existential type from the interface
* Add comment about calling .value in Lazy case
* Update changelog
* Update documentation
* Fix SchemaVisitorMetadataWriter
* Rename FieldFilter instances
* Rename compileOptional to compileNonRequired
* Rename SkipUnsetAndDefaultOptionValues to Default
* Fix compilation and add test case for bijection schema
* Add test for refined schema
* Update docs
* Move FieldFilter to smithy4s.schema
* Fix typo
* Rename SkipDefaultOptionValues to SkipNonRequiredDefaultValues
* Add missing changelog entry
* Remove redundant imports after refactor
---------
Co-authored-by: ghostbuster91 <[email protected]>
Co-authored-by: Jakub Kozłowski <[email protected]>
Copy file name to clipboardexpand all lines: CHANGELOG.md
+2
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ Thank you!
11
11
* Use correct cross path for protobuf-runtime-scala in [#1648](https://github.com/disneystreaming/smithy4s/pull/1648)
12
12
* Force rendering package object when a validated newtype is present in [#1656](https://github.com/disneystreaming/smithy4s/pull/1656)
13
13
* Improve performance of ADT trait validator on larger Smithy models in [#1573](https://github.com/disneystreaming/smithy4s/pull/1573)
14
+
* Move memoization of default values from Field to Schema in [#1651](https://github.com/disneystreaming/smithy4s/pull/1651)
15
+
* Add support for more flexible encoding of defaults in [#1652](https://github.com/disneystreaming/smithy4s/pull/1652). This brings `FieldFilter` abstraction that replaces `explicitDefaultsEncoding`.
0 commit comments