Service Fabric · API Governance Rules
Service Fabric API Rules
Spectral linting rules defining API design standards and conventions for Service Fabric.
8 Rules
error 4
warn 3
info 1
Rule Categories
service
Rules
warn
service-fabric-operation-id-pascal-case
Service Fabric operationIds should use camelCase matching the REST style
$.paths[*][get,post,put,patch,delete].operationId
error
service-fabric-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
error
service-fabric-operation-summary-required
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
service-fabric-api-version-required
Service Fabric API requires an api-version query parameter on all operations
$.paths[*][get,post,put,patch,delete]
warn
service-fabric-valid-tags
Operations must use tags from the defined Service Fabric tag list
$.paths[*][get,post,put,patch,delete].tags[*]
error
service-fabric-tags-required
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
info
service-fabric-health-state-enum
Health state properties must use standard Service Fabric enum values
$.components.schemas[*].properties[?(@property === 'HealthState' || @property === 'AggregatedHealthState')]
error
service-fabric-success-response
Operations must define a success response
$.paths[*][get,post,put,patch,delete].responses