Releases: mattpolzin/JSONAPI-OpenAPI
Fix periods in path
What's Changed
- fix period in path for function naming by @mattpolzin in #29
Full Changelog: 0.33.0...0.33.1
Update OpenAPIKit and JSONAPI dependencies
What's Changed
- Update OpenAPIKit and JSONAPI by @mattpolzin in #28
This project now requires Swift 6.0+, but it does not yet fully support Swift 6 language mode (Swift 5 language mode with a Swift 6.x compiler is currently required).
Full Changelog: 0.32.1...0.33.0
Fix underscore path component test generation
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.