# Apache Flink REST API Spectral Ruleset rules: info-title-required: description: Info title must be defined severity: error given: $.info then: field: title function: truthy info-version-required: description: API version must be specified severity: error given: $.info then: field: version function: truthy operation-summary-required: description: All operations must have a summary severity: error given: $.paths[*][get,post,put,delete,patch] then: field: summary function: truthy operation-summary-apache-flink-prefix: description: Operation summaries should start with Apache Flink severity: warn given: $.paths[*][get,post,put,delete,patch].summary then: function: pattern functionOptions: match: "^Apache Flink" operation-operationId-required: description: All operations must have an operationId severity: error given: $.paths[*][get,post,put,delete,patch] then: field: operationId function: truthy operation-tags-required: description: Operations should have tags for grouping severity: warn given: $.paths[*][get,post,put,delete,patch] then: field: tags function: truthy paths-no-trailing-slash: description: Paths must not have trailing slashes severity: warn given: $.paths then: field: "@key" function: pattern functionOptions: notMatch: "/$" parameter-description-required: description: All parameters must have descriptions severity: warn given: $.paths[*][get,post,put,delete,patch].parameters[*] then: field: description function: truthy response-success-required: description: Operations must define at least one 2xx response severity: error given: $.paths[*][get,post,put,delete,patch].responses then: function: schema functionOptions: schema: minProperties: 1 response-description-required: description: All responses must have descriptions severity: warn given: $.paths[*][get,post,put,delete,patch].responses[*] then: field: description function: truthy schema-description-recommended: description: Schemas should have descriptions severity: info given: $.components.schemas[*] then: field: description function: truthy