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

Schema type incorrectly set when omitted and items given #1763

Open
spacether opened this issue Jun 27, 2022 · 0 comments
Open

Schema type incorrectly set when omitted and items given #1763

spacether opened this issue Jun 27, 2022 · 0 comments

Comments

@spacether
Copy link
Contributor

Schema type incorrectly set when omitted and enums given

Swagger-parser version: 2.0.31

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:
    ASchemaGivenForItems:
      items:
        type: integer

When parsing the above schema, type should be unset on ASchemaGivenForItems
When one checks

  • ASchemaGivenForItems, the parser incorrectly set type to array when it should remain unset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant