Releases: mattpolzin/JSONAPI-OpenAPI
More versatility
What's Changed
- Tweaks to better support Viz generation. by @mattpolzin in #26
Full Changelog: 0.31.0...0.32.0
Uses OpenAPIKit 3.0.0
OpenAPIKit 3.0.0
Swift 5.9
Fixes test namespaces when some reserved words are found in a route path
For example, the route go/do/accept
would previously have resulted in a Swift code generated namespace of go.do.accept
and the do
component is a reserved word so it will fail to compile.
This is fixed by escaping do
with backticks in generated code.
Fix JSONAPI relationship gen for v5
The JSONAPI relationships generated will now successfully compile for v5 of the JSONAPI library.
Support anyOf structure generation
Rudimentary allOf structure generation (Swift code generation) support. This implementation is not accurate in the general case, but it supports anyOf
at least a little by generating the same Poly
structures as are generated for oneOf
.
Support named examples
Support for multiple named example parse tests when named response examples are used in documentation.
Add support for oneOf in more places.
Now in some places, like JSON:API attributes, oneOf
is supported to allow for polymorphic OpenAPI specs to be representable by Swift types generated by this library. The new support comes by way of the Poly
type that was there all along to support JSON:API includes.
Add error when not all path parameters are defined
Merge pull request #15 from mattpolzin/catch-undefined-parameters catch undefined path parameters before they cause a swift compilation…
Update for OpenAPIKit v2
Note that OpenAPIKit v2 introduced breaking changes.
Update for JSONAPI v5 release.
Update to the JSONAPI library v5 and drop Swift 5.2 support (easiest way to keep using swift-format).