42Crunch / vscode-openapi

VisualStudio Code OpenAPI tools
GNU Affero General Public License v3.0
335 stars 41 forks source link

Ignoring Validation on certain lines #282

Open payros opened 1 month ago

payros commented 1 month ago

Is there a way to ignore validation on certain lines, similar to Yaml lint's: "Disable with comments" feature?

My specific issue is that I'm using the open-api in conjunction with a Cloud Formation and I'm calling Fn:Sub to replace some values with strings before deployment. That produces an "Incorrect Type" error, as the schema expects a string.

Screen Shot 2024-09-20 at 9 11 30 AM

The validation works well for the rest of the file, but it would be great if there was a way to ignore these two errors.

Thanks!