Skip to content
Open
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
8 changes: 4 additions & 4 deletions rulesets/src/naming.ruleset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ rules:

##### Domain References #####
sps-ref-property-name:
description: Property with the name 'ref' MUST be of type 'sps-ref' following URN-like reference formats.
description: Property with the name 'ref' MUST use a format 'sps-ref'.
severity: error
formats: [oas3]
given: '$..properties..[?((@property=== "ref" || @property === "Ref") && @.$ref == null && @.allOf == null && @.oneOf == null && @.type != null)]'
resolved: false
then:
- field: "format"
- field: format
function: truthy
- field: "format"
- field: format
function: pattern
functionOptions:
match: "sps-ref"
match: "^sps-ref$"

sps-ref-schema:
description: Properties following 'sps-ref' format MUST use the standardized schema - maxLength (255), minLength(7), pattern (includes 'sps'), type (string).
Expand Down
Loading