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

fix(detectors): handle arrays when checking for openapi and swagger #87

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

elsapet
Copy link
Contributor

@elsapet elsapet commented Oct 27, 2022

Description

If we have a JSON array, the OpenAPI detector can't convert it into the expected OpenAPI struct.
Fallback to json/yml detectors in this case

Checklist

  • I've added test coverage that shows my fix or feature works as expected.
  • I've updated or added documentation if required.
  • I've included usage information in the description if CLI behavior was updated or added.
  • PR title follows Conventional Commits format

@swarmia
Copy link

swarmia bot commented Oct 27, 2022

@elsapet elsapet merged commit cba816b into main Nov 1, 2022
@elsapet elsapet deleted the AMA-3064-openapi-detector-errors-when-scanning-ama branch November 1, 2022 11:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants