Skip to content

Changes in AMF 4.1.2-0

Compare
Choose a tag to compare
@BlockLucas BlockLucas released this 11 Jun 21:04
· 3 commits to support/4.1.2 since this release

Released Jun 11, 2020.

JS asset

JVM asset

OAS 30 Validation Changes

Status code in OAS 30 specs now must be a string as specified in spec.

This field MUST be enclosed in quotation marks (for example, "200") for compatibility between JSON and YAML.

See OpenAPI Specification here: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#patterned-fields-1

For example the following API is now invalid:

openapi: "3.0.0"
info:
  version: 1.0.0
  title: 1-api
paths:
  /test:
    get:
      responses:
        200: # quote this key to fix it
          description: 200 response

AMF Fixed issues