US African Development Foundation · API Governance Rules
US African Development Foundation API Rules
Spectral linting rules defining API design standards and conventions for US African Development Foundation.
25 Rules
error 7
warn 10
Rule Categories
usadf
Rules
error
usadf-info-title-present
API info must have a title
$.info
warn
usadf-info-description-present
API info must have a description
$.info
error
usadf-info-version-present
API info must have a version
$.info
warn
usadf-info-contact-present
Government APIs must have contact information
$.info
error
usadf-openapi-version
Must use OpenAPI 3.x
$
warn
usadf-servers-present
API must define servers
$
warn
usadf-server-url-https
Server URLs should use HTTPS
$.servers[*].url
error
usadf-paths-present
API must define paths
$
hint
usadf-path-kebab-case
Path segments should use kebab-case or underscores
$.paths[*]~
error
usadf-operation-id-present
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
usadf-operation-summary-present
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
hint
usadf-operation-description-present
All operations should have a description
$.paths[*][get,post,put,patch,delete]
warn
usadf-operation-tags-present
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
error
usadf-response-description-present
All responses must have a description
$.paths[*][get,post,put,patch,delete].responses[*]
error
usadf-response-success-present
Operations must define a 2xx success response
$.paths[*][get,post,put,patch,delete].responses
hint
usadf-schema-description-present
All schemas should have a description
$.components.schemas[*]
hint
usadf-schema-properties-examples
Schema properties should include examples
$.components.schemas[*].properties[*]
hint
usadf-award-amount-defined
Award schemas should define total obligation or award amount
$.components.schemas.Award.properties
warn
usadf-opportunity-dates-defined
Grant opportunity schemas must define open and close dates
$.components.schemas.Opportunity.properties
warn
usadf-opportunity-status-enum
Grant opportunity status should use an enum
$.components.schemas.Opportunity.properties.oppStatus
hint
usadf-award-category-enum
Award category should use an enum
$.components.schemas.Award.properties.category
warn
usadf-get-no-request-body
GET operations should not have a request body
$.paths[*].get
hint
usadf-microcks-operation-present
Operations should include Microcks extension for mocking
$.paths[*][get,post,put,patch,delete]
hint
usadf-examples-in-responses
Responses should include examples
$.paths[*][get,post,put,patch,delete].responses[*].content[*]
warn
usadf-parameter-description
Parameters should have descriptions
$.paths[*][get,post,put,patch,delete].parameters[*]