Formats on Formats (release candidate)
Pre-release
Pre-release
What's Changed
- Adds missing
contentMediaType
andcontentEncoding
properties toJSONSchema.string()
convenience constructor functions (#334) - Adds a few more builtin content types I was surprised to have not included already (#335)
- JSON Schema String Format Updates (#337)
Breaking Changes
There are no breaking changes to the OpenAPIKit30
module. The following all apply to the OpenAPIKit
module.
- There is no longer
.extended
formats for.string
JSON Schemas. Instead, all existing.extended
formats are now just regular .string
formats (e.g. you can just replace.extended(.uuid)
with.uuid
). - There are no longer
.byte
or.binary
formats for.string
JSON Schemas. Instead, use thecontentEncoding
s of.base64
and.binary
, respectively. - The
.uriReference
.extended
JSON Schema.string
format used to serialize touriref
whereas the new.uriReference
JSON Schema.string
format serializes touri-reference
, per the JSON Schema standard. - The new builtin
ContentType
s will not compare equally to custom types created previously (e.g.ContentType.gif
is not equal toContentType.other("image/gif")
. If you need such things to compare equally, compare their.rawValue
properties.
Full Changelog: 3.0.0-rc.3...3.0.0-rc.4