diff --git a/rulesets/src/naming.ruleset.yml b/rulesets/src/naming.ruleset.yml index cf91ade..9186a40 100644 --- a/rulesets/src/naming.ruleset.yml +++ b/rulesets/src/naming.ruleset.yml @@ -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).