commit | 7d6080db971cd960145ecbf31c7bc4fea2dc09a0 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Sep 04 12:54:45 2024 -0400 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Sep 11 15:11:13 2024 +0000 |
tree | 8c462aaa14a84ce90e4e0a8a7ac7c3ba9b62e88e | |
parent | 4f93bb8c6282698d37782f48848988628561b1e5 [diff] [blame] |
json: adjust definitions alias JSON Schema suggests[1] using "$defs" rather than "definitions" as the location for reusable definitions in a schema. While, this isn't strictly required, there is some implication that using it lends to better schema validation error reporting[2]. Adjust all the schema files to use "$defs" rather than "definitions". [1]: https://json-schema.org/understanding-json-schema/structuring#defs [2]: https://github.com/orgs/json-schema-org/discussions/151 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4b23890950bd2ebb7a7de99fd911fb3c9e0a4dbd
diff --git a/schemas/pid.json b/schemas/pid.json index cd5898f..098bdb0 100644 --- a/schemas/pid.json +++ b/schemas/pid.json
@@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "definitions": { + "$defs": { "Pid": { "type": "object", "properties": {