github softwaremill/tapir v1.2.0

latest releases: v1.11.9, v1.11.8, v1.11.7...
2 years ago

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

Don't miss a new tapir release

NewReleases is sending notifications on new releases.