Releases: apiaryio/fury-adapter-swagger
0.19.2
Bug Fixes
-
Return an error in the parse result when the source API Description Document is not an object. Previously an error was thrown.
-
When a request or response body has a schema of
format: binary
then we no longer generate a JSON Schema in the parse result. A JSON Schema for binary types doesn't make sense as you cannot place binary data in JSON. -
Example values found in schemas are now translated into examples in generated JSON Schema exposed in parse results.
-
Data Structure sample values will now include schema example values.
-
Request and Response body examples will now respect the example values of a schema.
0.19.1
Enhancements
-
When a schema uses
allOf
and doesn't provide a type hint at the schema root, theallOf
types are matched for object schemas. This allows the following schema to work where beforetype: object
was required at the schema root at the same level asallOf
:allOf: - type: object properties: username: type: string - type: object properties: name: type: string
Bug Fixes
- When using
enum
in conjunction withx-nullable
in a schema, this will now result in thenull
value being present in schema if it isn't already.
0.19.0
0.18.3
Bug Fixes
- Swagger Schemas are now recursively translated from Swagger schema into JSON Schema draft 4 in the resultant messageSchema of a parse result. This fixes bugs where components such as
x-nullable
,readOnly
,externalDocs
etc are not handled when found inside another schema as a sub-schema.
0.18.2
Bug Fixes
- Fixes an issue where auth scheme elements are re-used multiple times in a parse result which can cause exceptions when the parse result is frozen. This is in the case where you have multiple consumes so multiple request/response pairs are created for the action.
0.18.1
0.18.0
0.16.1
Bug Fixes
- Allow parsing Swagger parameters of array type which do not have samples and offer
items
which does not include a type. - Coerce a resource
x-summary
value to a string if it is not already a string. When a user enters an incorrect type such as boolean, number or array. The title would become an incorrect type and can cause subsequent tooling to fail.