Apache Pig · API Governance Rules
Apache Pig API Rules
Spectral linting rules defining API design standards and conventions for Apache Pig.
12 Rules
error 5
warn 5
info 2
Rule Categories
error
info
no
operation
operationid
path
response
schema
servers
Rules
error
info-title-required
$.info
error
operation-summary-required
$.paths[*][*]
error
operation-operationId-required
$.paths[*][*]
info
operation-summary-apache-prefix
$.paths[*][get,post,put,delete,patch].summary
error
response-success-required
$.paths[*][get,post,put].responses
error
servers-https-only
Server URLs must use HTTPS.
$.servers[*].url
warn
path-params-casing
Path parameters should be camelCase (the dominant convention in this API).
$.paths[*].parameters[?(@.in=='path')].name
warn
operationid-casing
Operation IDs should be camelCase (the dominant convention in this API).
$.paths[*][get,post,put,patch,delete].operationId
warn
schema-names-casing
Component schema names should be PascalCase (the dominant convention in this API).
$.components.schemas
info
schema-properties-casing
Schema properties should be snake_case (the dominant convention in this API).
$.components.schemas[*].properties
warn
error-schema-defined
A shared error schema (ValidationError) should be defined for error payloads.
$.components.schemas
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description