Skip to content

Commit

Permalink
fix: format validation for empty relative-json-pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
sagold committed Apr 6, 2024
1 parent a7ea5f8 commit 285f710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validation/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const formatValidators: Record<
},

"relative-json-pointer": (draft, schema, value, pointer) => {
if (typeof value !== "string" || value === "") {
if (typeof value !== "string") {
return undefined;
}
if (isValidRelativeJsonPointer.test(value)) {
Expand Down

0 comments on commit 285f710

Please sign in to comment.