Api Elements.js Versions Save

Library for consuming API Elements in JavaScript

[email protected]

4 years ago

Bug Fixes

  • Prevent valueOf from throwing an error while handling an object element which contains a member element which does not include a value.

@apielements/[email protected]

4 years ago

Bug Fixes

  • The parser will now produce a data structure for Schema Object's which do not contain a type.

  • Added the fixedType attribute to array data structures which describe arrays with fixed types in the items. For example, the following schema which describes an array where the values MUST be of type string:

    type: array
    items:
      type: string
    

    Previously we generated a data structure for an array which didn't fix the values of the array to be a string type. Instead provided an example that the value of the array MAY be a string.

  • Support required keys in a Schema Object which are not found in the properties list.

@apielements/[email protected]

4 years ago

Bug Fixes

  • Support required keys in a Schema Object which are not found in the properties list.

@apielements/[email protected]

4 years ago

Bug Fixes

  • Prevent the parser from throwing an error when handling a Server Object with variables when the URL does not contain any variables. For example:

    openapi: 3.0.3
    servers:
      - url: https://example.com
        variables:
          version:
            default: '1.0'
    paths: {}
    

@apielements/[email protected]

4 years ago

The package has been renamed to @apielements/apib-parser.

[email protected]

4 years ago

Internal changes to the dependency tree to simplify package maintenance.

[email protected]

4 years ago

Enhancements

  • Support for servers in Path Item Object and Operation Object

  • 'Parameter Object' 'explode' style is partially supported, it can be used with query parameters.

[email protected]

4 years ago
  • Compatibility with Fury 3.0.0 Beta 14.

  • The parser can now be configured to disable generation of example message bodies and message body schemas by providing an adapter option generateMessageBody or generateMessageBodySchema as false during parse.

[email protected]

4 years ago

This update incorporates changes from Fury Adapters:

  • fury-adapter-oas3-parser 0.11.0
  • fury-adapter-swagger 0.29.0

[email protected]

4 years ago

Enhancements

  • Compatibility with Fury 3.0.0 Beta 14.

  • Support for "default" response status codes.

  • Support for Server Object and Server Variable Object

  • The parser can now be configured to disable generation of example message bodies by providing an adapter option generateMessageBody as false during parse.