Last active
March 26, 2022 09:41
-
-
Save arno-di-loreto/451252324dcc1af6fe33f760666ece0d to your computer and use it in GitHub Desktop.
Gist in tweet thread test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rules: | |
security-rules-defined-oas2: | |
formats: ["oas2"] | |
recommended: true | |
description: Security definitions must be defined | |
severity: error | |
tags: | |
- security | |
given: $ | |
then: | |
field: securityDefinitions | |
function: truthy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rules: | |
security-rules-defined-oas3: | |
formats: ["oas3"] | |
recommended: true | |
description: Security schemes must be defined | |
severity: error | |
tags: | |
- security | |
given: $ | |
then: | |
function: schema | |
functionOptions: | |
schema: | |
$schema: "http://json-schema.org/draft-07/schema#" | |
additionalProperties: true | |
required: | |
- components | |
properties: | |
components: | |
additionalProperties: true | |
required: | |
- securitySchemes | |
properties: | |
securitySchemes: | |
type: object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment