stoplightio / spectral-action

GitHub Action wrapper for Spectral - a JSON/YAML/OpenAPI/AsyncAPI/etc linter with custom rule support.
https://stoplight.io/open-source/spectral
Apache License 2.0
89 stars 46 forks source link

requesting an option to suppress "unrecognized-format" #631

Open pemba-sherpa-sage opened 2 years ago

pemba-sherpa-sage commented 2 years ago

User story.

As a spectral-action user, I can suppress unrecognized-format warnings, so that I can have flexibility in the linting reports.

Is your feature request related to a problem?

Currently, when you run the spectral GitHub action, we don't seem to have the option to suppress the unrecognized-format warning

Describe the solution you'd like

I would like some options similar to Spectral CLI --ignore-unknown-format that can be used in spectral-action as well to enable suppressing/ignoring the "unrecognized-format" warning

Additional context

None

disambiguationuk commented 4 months ago

@XVincentX would you be open to a PR to add this functionality with an optional parameter that defaults to false?

XVincentX commented 3 months ago

@disambiguationuk I have not been working for Stoplight for 3 years now - you might want to reach out to the people in Smartbear