Skip to content

Commit

Permalink
Comments correction
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoSemanas committed Feb 3, 2025
1 parent adf24b4 commit 6c6ac22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/queries/openAPI/general/pattern_undefined/query.rego
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ CxPolicy[result] {
}

checkForSanitizers(value) {
openapi_lib.undefined_field_in_string_type(value, "enum") # enums have the maxLength implicit
openapi_lib.undefined_field_in_string_type(value, "enum") # enums have an implicit pattern
checkStringFormat(value)
}

checkStringFormat(value) {
openapi_lib.undefined_field_in_string_type(value, "format")
} else {
value["format"] != "date" # date and date-time formats
value["format"] != "date-time" # have the maxLength implicit
value["format"] != "date-time" # have an implicit pattern
}

0 comments on commit 6c6ac22

Please sign in to comment.