Conversation
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
🤖 Augment PR SummarySummary: This PR expands the repository’s JSON Schema linter with additional JSON-LD-focused rules, improving detection of invalid or ambiguous Changes:
Technical Notes: The new rules are written as standalone JSON Schemas (Draft 2020-12) and are composed to validate both scalar and array forms within 🤖 Was this summary useful? React with 👍 or 👎 |
| "then": { | ||
| "properties": { | ||
| "@value": { | ||
| "pattern": "^[+-]?[0-9]+$" |
There was a problem hiding this comment.
integer-datatypes includes constrained derived types like xsd:nonNegativeInteger/xsd:unsignedByte, but the current lexical check (^[+-]?[0-9]+$ + multipleOf: 1) doesn't enforce those sign/range restrictions. As a result, invalid constants like {"@type":"…#nonNegativeInteger","@value":"-1"} would still satisfy this rule.
Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
Signed-off-by: Juan Cruz Viotti jv@jviotti.com