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

Question: Adding Spec Markup to Ignore Validator Errors #2827

Open
noorbuchi opened this issue Sep 6, 2022 · 1 comment
Open

Question: Adding Spec Markup to Ignore Validator Errors #2827

noorbuchi opened this issue Sep 6, 2022 · 1 comment
Labels

Comments

@noorbuchi
Copy link

Problem statement

I currently have some Swagger specs that I'm using to generate from. They have couple errors when validating them, specifically this:

operation "operation_name" has both formData and body parameters. Only one such In: type may be used for a given operation

I'm aware of this and I want the validator to ignore this error for the operation. Is there any markup/tag I can add to the specs to let the validator know to ignore the error?

Environment

swagger version: 0.25.0
go version: 1.14.2
OS: Linux

@fredbi
Copy link
Contributor

fredbi commented Dec 21, 2023

There is a --skip-validation flag to the swagger generate CLI to avoid the validations step before codegen.

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

No branches or pull requests

2 participants