Skip to content

Required object validation #3822

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

Closed
heldersepu opened this issue Oct 26, 2017 · 4 comments
Closed

Required object validation #3822

heldersepu opened this issue Oct 26, 2017 · 4 comments

Comments

@heldersepu
Copy link
Contributor

Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? latest
Which Swagger-UI version? 3.x
How did you install Swagger-UI? Swagger-Net
Which browser & version? Chrome
Which operating system? Win 10

Demonstration API definition

http://swashbuckletest.azurewebsites.net/swagger/ui/index?filter=Noda#/NodaTime/NodaTime_GetByDate3

Expected Behavior

Any input should be correct...

Current Behavior

The validation shows an error and the input box is colored red

Possible Solution

PR coming soon

Context

Just go trough the [Try it out] process enter something like "01-01-2001" and click [Execute]
...you will see the error shakes the input box.
But there should be no validation there!?!?

@webron
Copy link
Contributor

webron commented Oct 26, 2017

@heldersepu that's not a valid spec... in OAS2, query parameters can't be of type object...

@heldersepu
Copy link
Contributor Author

Interesting, then the bug is on my side...

@heldersepu
Copy link
Contributor Author

Is there any online tool to validate the spec?

@webron
Copy link
Contributor

webron commented Oct 26, 2017

Yes, it's the validator badge that's removed in Swashbuckle's UI distribution ;) Check the bottom of the pet store.

@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