Skip to content

Commit

Permalink
fix: match() error on petstore resolved
Browse files Browse the repository at this point in the history
No longer getting this error with the more performant syntax avoiding the invalid .[ usage
  • Loading branch information
philsturgeon committed Oct 24, 2022
1 parent 93083b7 commit 24ed566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
description:
"Please avoid exposing IDs as an integer, UUIDs are preferred.",
given:
'$.paths..parameters[*].[?(@property === "name" && (@ === "id" || @ && @.match(/(_id|Id)$/)))]^.schema',
'$.paths..parameters[*][?(@property === "name" && (@ === "id" || @.match(/(_id|Id|-id)$/)))]^.schema',
then: {
function: schema,
functionOptions: {
Expand Down

0 comments on commit 24ed566

Please sign in to comment.