Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1.0 info missing from schema with type unset and exclusiveMaximum/exclusiveMinimum set #1762

Closed
spacether opened this issue Jun 26, 2022 · 1 comment · Fixed by openapi-json-schema-tools/openapi-json-schema-generator#234

Comments

@spacether
Copy link
Contributor

spacether commented Jun 26, 2022

Validation missing from component schema when type is unset and exclusiveMaximum/exclusiveMinimum set

swagger-parser version: 2.1.1

Sample spec:

openapi: 3.0.3
info:
  title: openapi 3.0.3 sample spec
  description: sample spec for testing openapi functionality, built from json schema
    tests for draft6
  version: 0.0.1
paths: {}
components:
  schemas:
    ExclusivemaximumValidation:
      exclusiveMaximum: 3.0
    ExclusiveminimumValidation:
      exclusiveMinimum: 1.1

In the component schema:

  • ExclusivemaximumValidation, exclusiveMaximum should be set but it is unset.
  • ExclusiveminimumValidation, exclusiveMinimum should be set but is unset
@spacether spacether changed the title Validation missing from component schema 3.1.0 validation missing from schema with typye unset and exclusiveMaximum/exclusiveMinimum set Sep 28, 2023
@spacether spacether changed the title 3.1.0 validation missing from schema with typye unset and exclusiveMaximum/exclusiveMinimum set 3.1.0 info missing from schema with typye unset and exclusiveMaximum/exclusiveMinimum set Sep 28, 2023
@spacether spacether changed the title 3.1.0 info missing from schema with typye unset and exclusiveMaximum/exclusiveMinimum set 3.1.0 info missing from schema with type unset and exclusiveMaximum/exclusiveMinimum set Sep 28, 2023
@spacether
Copy link
Contributor Author

My mistake, this issue is invalid.
The needed data is available with the new getExclusiveMinimumValue + getExclusiveMaximumValue getters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant