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

Allow for different resource content keys than application/json #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timnovis
Copy link

The hardcoded response key resulted in null results for openAPI schemas with keys that had more than application/json in their content key, e.g.

paths:
  /status:
    get:
      responses:
        '200':
          description: OK
          headers: {}
          content:
            application/json; charset=utf-8;: <<<<< here, this is valid openapi
              schema:
                type: object

This PR updates it just to check for the start of the string allowing for variation.

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.

1 participant