United States Coast Guard · API Governance Rules
United States Coast Guard API Rules
Spectral linting rules defining API design standards and conventions for United States Coast Guard.
7 Rules
error 3
warn 4
Rule Categories
cgmix
Rules
error
cgmix-operation-ids-required
All operations must have operationIds for client generation.
$.paths[*][get,post,put,delete,patch]
error
cgmix-vessel-id-required
PSIX endpoints require VesselID parameter.
$.paths[?(@property =~ /PSIXData/)][*].parameters[?(@.name == 'VesselID')]
warn
cgmix-xml-response-type
CGMIX APIs return XML responses.
$.paths[*][get,post].responses[*].content
warn
cgmix-operations-have-tags
All operations should have tags for grouping.
$.paths[*][get,post,put,delete,patch]
warn
cgmix-parameters-have-descriptions
All parameters should include descriptions.
$.paths[*][*].parameters[*]
warn
cgmix-info-contact
API info should include contact details.
$.info
error
cgmix-responses-documented
All operations should document at least a 200 response.
$.paths[*][get,post,put,delete,patch].responses