Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Releases: apiaryio/api-elements.js

@apielements/[email protected]

22 Jul 14:03
Compare
Choose a tag to compare

Bug Fixes

  • Improvements to generation of JSON message bodies to add more cases where example property of a Schema Object will be respected.
    #515

[email protected]

01 Jul 12:49
62dff8c
Compare
Choose a tag to compare

Bug Fixes

  • Fixes the hosts property in api category to return the hosts category.

@apielements/[email protected]

01 Jul 12:06
Compare
Choose a tag to compare

Enhancements

  • Adds support for the Schema Object title property.

Bug Fixes

  • Adds an accept header to requests with the matching responses content type.

@apielements/[email protected]

24 Jun 10:06
Compare
Choose a tag to compare

Enhancements

  • Adds partial support for using oneOf in a Schema Object. One of is supported when used in a schema object alone, or with the nullable constraint or any annotation. It is not supported in the case when one of is used in conjunction with other constraints in the same schema object.

Bug Fixes

  • Supports using $ref in the root of a component, for example:

    components:
      schemas:
        UserAlias:
          $ref: '#/components/schemas/User'
        User:
          type: object
  • Prevents the parser from throwing an error upon encountering an unknown or invalid YAML node tag, such as !!unknown.

@apielements/[email protected]

24 Jun 10:06
Compare
Choose a tag to compare

This update incorporates changes from API Element Adapters:

  • openapi3-parser 0.14.0

@apielements/[email protected]

22 Jun 15:46
Compare
Choose a tag to compare

Bug Fixes

  • The generateMessageBody and generateMessageBodySchema adapter options are now respected.

@apielements/[email protected]

22 Jun 15:43
Compare
Choose a tag to compare

Bug Fixes

  • Prior versions of the adapter reported the following 'Header Object' keys as invalid: style, explode, allowReserved, schema, content, example, and examples. These will now return an unsupported warning instead.

  • Negative boolean YAML values was previously treated as true and thus Parameter Object's with required: false would have been incorrectly treated as required.

@apielements/[email protected]

22 Jun 15:46
Compare
Choose a tag to compare

Enhancements

  • Performance improvements to OpenAPI 2 validation, this will only apply to validation only. Full OpenAPI 2 parsing is not altered.

Bug Fixes

  • Returns a validation error while trying to parse a YAML or JSON object which does not contain the swagger key, in prior versions the parser may have crashed under some inputs.
  • Improved clarity of validation error messages.
  • Fixes a case where the source map information may be missing for one type of validation errors.

@apielements/[email protected]

10 Jun 10:57
Compare
Choose a tag to compare

The package has been renamed to @apielements/remote.

@apielements/[email protected]

09 Jun 14:37
Compare
Choose a tag to compare

Bug Fixes

  • This release includes performance improvements to parsing documents which contain the same schema re-used via a reference ($ref) many times in request parameters and response bodies under an allOf key.