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

OAS3 fails to load a resource when encoding is missing 'style' #496

Closed
chris-miaskowski opened this issue Jul 26, 2019 · 0 comments · Fixed by #507
Closed

OAS3 fails to load a resource when encoding is missing 'style' #496

chris-miaskowski opened this issue Jul 26, 2019 · 0 comments · Fixed by #507
Labels

Comments

@chris-miaskowski
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

openapi: '3.0.1'
paths:
  /path:
    post:
      responses:
        200:
          content:
            text/plain:
              example: ok
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                reserved:
                  type: string
            encoding:
              reserved:
                contentType: text/plain
prism mock file.oas3.yaml 

Expected behavior

Load the file and create server with one endpoint

Actual

✖  fatal     Encoding property style: 'undefined' is incorrect, must be one of: form,spaceDelimited,pipeDelimited,deepObject

Environment (remove any that are not applicable):

  • Library version: 3.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant