github.com/snyk/vervet/v4@v4.27.2/testdata/compiled-rules.yaml (about)

     1  extends:
     2    - - spectral:oas
     3      - all
     4  
     5  rules:
     6    openapi-tags: off
     7    operation-tags: off
     8    info-contact: off
     9    info-description: off
    10    info-license: off
    11    license-url: off
    12  
    13    oas3-server-not-example.com: off
    14  
    15    openapi-get-versions:
    16      description: APIs must list the available versioned OpenAPI specifications.
    17      severity: error
    18      given: $.paths[/openapi]
    19      then:
    20        field: get
    21        function: truthy
    22  
    23    openapi-get-version:
    24      description: APIs must provide versioned OpenAPI specifications.
    25      severity: error
    26      given: $.paths[/openapi/{version}]
    27      then:
    28        field: get
    29        function: truthy