Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

Releases: apiaryio/fury-adapter-swagger

0.19.2

21 Aug 11:12
Compare
Choose a tag to compare

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

25 Jun 15:35
577c48d
Compare
Choose a tag to compare

Enhancements

  • When a schema uses allOf and doesn't provide a type hint at the schema root, the allOf types are matched for object schemas. This allows the following schema to work where before type: object was required at the schema root at the same level as allOf:

    allOf:
      - type: object
        properties:
          username:
            type: string
      - type: object
        properties:
          name:
            type: string

Bug Fixes

  • When using enum in conjunction with x-nullable in a schema, this will now result in the null value being present in schema if it isn't already.

0.19.0

28 May 20:35
d9d956d
Compare
Choose a tag to compare

Enhancements

  • Enumeration behaviour is now the same as API Elements 1.0 such that the values that are fixed will now have a fixed type attribute.

0.18.3

10 May 21:24
0bd8738
Compare
Choose a tag to compare

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

25 Apr 14:05
f70154c
Compare
Choose a tag to compare

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

02 Apr 21:34
193b907
Compare
Choose a tag to compare

Enhancements

  • Allow date and date-time format support

0.18.0

26 Mar 17:49
fd01b1e
Compare
Choose a tag to compare

Breaking

  • Support for Node 4 was removed. Node 6 is the minimum supported version of
    Node.

Enhancements

  • Adds support for the x-nullable schema extension. This allows adding null
    as a type to a schema. This is an OpenAPI 3 feature ported to Swagger 2 as a
    vendored extension.
    #112

0.16.1

17 Jan 22:06
8c31812
Compare
Choose a tag to compare

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.

0.15.2

30 Nov 13:25
648b38f
Compare
Choose a tag to compare

Enhancements

  • File type parameters are now included instead of being ignored.

0.15.1

10 Nov 17:19
f497db6
Compare
Choose a tag to compare

Bug Fixes

  • Data Structure generation was not including required typeAttribute for required object properties.