Formats on Formats (release candidate)
Pre-release
Pre-release
What's Changed
- Adds missing
contentMediaTypeandcontentEncodingproperties 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
.extendedformats for.stringJSON Schemas. Instead, all existing.extendedformats are now just regular .stringformats (e.g. you can just replace.extended(.uuid)with.uuid). - There are no longer
.byteor.binaryformats for.stringJSON Schemas. Instead, use thecontentEncodings of.base64and.binary, respectively. - The
.uriReference.extendedJSON Schema.stringformat used to serialize tourirefwhereas the new.uriReferenceJSON Schema.stringformat serializes touri-reference, per the JSON Schema standard. - The new builtin
ContentTypes will not compare equally to custom types created previously (e.g.ContentType.gifis not equal toContentType.other("image/gif"). If you need such things to compare equally, compare their.rawValueproperties.
Full Changelog: 3.0.0-rc.3...3.0.0-rc.4