Release notes
- improved, more consistent enumeration support: both Scala's
Enumeration
, and sealed trait object-only / scala3 parameterlessenum
s - 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 fromNone
toSome(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
andEndpointTransput.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 withexploded
parameter support in OpenAPI
What’s Changed
- Schema modification docs, more flexible enumeration validators (#2530) @adamw
- 2504 support for file ranges in the netty based backend (#2507) @rafalambrozewicz
- Minor corrections to documentation (#2543) @dubinsky
Dependency updates
- Update jsoniter-scala-core, ... to 2.17.9 (#2549) @softwaremill-ci
- Update jsoniter-scala-core, ... to 2.17.8 (#2547) @softwaremill-ci
- Update jsoniter-scala-core, ... to 2.17.7 (#2544) @softwaremill-ci
- Update scalafmt-core to 3.6.1 (#2538) @softwaremill-ci