Skip to content

Instantly share code, notes, and snippets.

@hpatoio
Created September 8, 2020 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hpatoio/1141f4cf721a502bdb5183f06fcd4b8b to your computer and use it in GitHub Desktop.
Save hpatoio/1141f4cf721a502bdb5183f06fcd4b8b to your computer and use it in GitHub Desktop.
.spectral
#CONFIGURATION FILE FOR SPECTRAL SWAGGER/OPEANAPI FILE LINTER
extends: spectral:oas
functions: [enum-uppercase]
rules:
enum-uppercase:
message: "{{error}}"
given: "$.paths.*.parameters.*.schema.enum"
then:
function: "enum-uppercase"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment