mongodb / openapi

MongoDB OpenAPI specs
Apache License 2.0
4 stars 3 forks source link

chore: Add spectral lint rule #183

Closed blva closed 3 weeks ago

blva commented 4 weeks ago

Proposed changes

Add spectral lint to validate custom methods

Example:

INFO: Build completed successfully, 1 total action
Running spectral linter
6.11.1
 - linting /Users/bianca.lisle/workplace/mms/server/openapi/services/openapi-mms.yaml

/<redacted>/openapi-mms.yaml
 1640:69  error  no-slash-before-custom-method  Ensure that paths do not contain a '/' immediately before a custom method (e.g., ':applyItem').  paths./api/atlas/v2/orgs/{orgId}/invoices/{invoiceId}/lineItems/:search

Checklist

Further comments