Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tools/spectral/ipa/rulesets/IPA-112.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rules:
- Suggests using "group", "groups", or "groupId" as alternatives
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-112-avoid-project-field-names'
severity: warn
resolved: false
given:
- '$.components.schemas..properties'
- '$.paths..requestBody.content[?(@property.match(/json$/i))].schema..properties'
Expand All @@ -46,6 +47,7 @@ rules:
- Reports any instances where these field names are not in camelCase format
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-112-field-names-are-camel-case'
severity: warn
resolved: false
given:
- '$.components.schemas..properties'
- '$.paths..requestBody.content[?(@property.match(/json$/i))].schema..properties'
Expand All @@ -64,6 +66,7 @@ rules:
- Suggests using the direct adjective form instead (e.g., "disabled" instead of "isDisabled")
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-112-boolean-field-names-avoid-is-prefix'
severity: warn
resolved: false
given:
- '$.components.schemas..properties'
- '$.paths..requestBody.content[?(@property.match(/json$/i))].schema..properties'
Expand Down
Loading