Skip to content

v1.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Nov 19:14
· 2223 commits to refs/heads/master since this release

Release notes

  • improved, more consistent enumeration support: both Scala's Enumeration, and sealed trait object-only / scala3 parameterless enums
  • consistent derivation for enumeration schemas/ codecs, using Codec.derivedEnumeration, Codec.derivedEnumerationValue (implicit), Codec.derivedEnumerationValueCustomise
  • separate documentation page for enumerations
  • default value of Schema.derivedEnumeration(encode = x) changed from None to Some(v => v) so that enumeration values are by default represented in the documentation using .toString, without the need to customise schemas in this case
  • introduction of Codec.mapValidate and EndpointTransput.mapValidate to support validation & mapping for values, which are unrepresentable if the validation conditions are not met
  • added Delimted[DELIMITER, T] list wrapper, to derive codecs for comma- and other-delimited values, e.g. in query parms, along with exploded parameter support in OpenAPI

What’s Changed

Dependency updates