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

@apielements/[email protected]

Compare
Choose a tag to compare
@kylef kylef released this 24 Jun 10:06
· 103 commits to master since this release

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.