Skip to content

openapi3 for minValueExclusive and maxValueExclusive is invalid #2230

@mikekistler

Description

@mikekistler

The openapi3 emitter generates invalid output for @minValueExclusive and @maxValueExclusive.

components:
  schemas:
    Test:
      type: object
      properties:
        foo:
          type: number
          format: float
          exclusiveMinimum: 0
          exclusiveMaximum: 1

Playground example

In OpenAPI v3 (JSON Schema draft 5), exclusiveMinimum and exclusiveMaximum are boolean values, not numbers.

The value of "exclusiveMinimum" MUST be a boolean, representing whether the limit in "minimum" is exclusive or not

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions