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

Regression: #4162 OAS3.0 parameter validation not working #4374

Closed
pho-enix opened this issue Mar 27, 2018 · 1 comment
Closed

Regression: #4162 OAS3.0 parameter validation not working #4374

pho-enix opened this issue Mar 27, 2018 · 1 comment

Comments

@pho-enix
Copy link

OAS3.0 parameters are not validated and do not trigger errors.

Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? OAS3.0
Which Swagger-UI version? 3.13.0
How did you install Swagger-UI? npm swagger-ui-dist
Which browser & version? firefox, chrome
Which operating system? linux, windows

Demonstration API definition

    parameters:
    - name: mustbeset
      schema:
        type: string
      in: path
      required: true

Expected Behavior

  1. Hit Try it out button
  2. Leave the required parameter empty
  3. Hit Execute
  4. Required parameter gets highlighted red and gives users feedback that it's required

Current Behavior

Nothing happens in frontend. No user feedback

Hints

Schema Validation works (at least partial)
Error Feedback in Frontend Validation works (at least partial)
Probably the errors get lost somewhere in redux state

@lock
Copy link

lock bot commented Jul 2, 2019

Locking due to inactivity.

This is done to avoid resurrecting old issues and bumping long threads with new, possibly unrelated content.

If you think you're experiencing something similar to what you've found here: please open a new issue, follow the template, and reference this issue in your report.

Thanks!

@lock lock bot locked and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants