|  | 
| 1 | 1 | { | 
| 2 |  | -  "$schema": "http://json-schema.org/draft-07/schema#", | 
|  | 2 | +  "$schema": "https://json-schema.org/draft/2020-12/schema", | 
| 3 | 3 |   "$id": "https://stac-extensions.github.io/template/v1.0.0/schema.json#", | 
| 4 | 4 |   "title": "Template Extension", | 
| 5 | 5 |   "description": "STAC Template Extension for STAC Items and STAC Collections.", | 
|  | 
| 8 | 8 |       "$comment": "This is the schema for STAC Items. Remove this object if this extension only applies to Collections.", | 
| 9 | 9 |       "allOf": [ | 
| 10 | 10 |         { | 
| 11 |  | -          "$ref": "#/definitions/stac_extensions" | 
|  | 11 | +          "$ref": "#/$defs/stac_extensions" | 
| 12 | 12 |         }, | 
| 13 | 13 |         { | 
| 14 | 14 |           "type": "object", | 
|  | 
| 30 | 30 |                   ] | 
| 31 | 31 |                 }, | 
| 32 | 32 |                 { | 
| 33 |  | -                  "$ref": "#/definitions/fields" | 
|  | 33 | +                  "$ref": "#/$defs/fields" | 
| 34 | 34 |                 } | 
| 35 | 35 |               ] | 
| 36 | 36 |             }, | 
| 37 | 37 |             "assets": { | 
| 38 | 38 |               "$comment": "This validates the fields in Item Assets, but does not require them.", | 
| 39 | 39 |               "type": "object", | 
| 40 | 40 |               "additionalProperties": { | 
| 41 |  | -                "$ref": "#/definitions/fields" | 
|  | 41 | +                "$ref": "#/$defs/fields" | 
| 42 | 42 |               } | 
| 43 | 43 |             } | 
| 44 | 44 |           } | 
|  | 
| 60 | 60 |           } | 
| 61 | 61 |         }, | 
| 62 | 62 |         { | 
| 63 |  | -          "$ref": "#/definitions/stac_extensions" | 
|  | 63 | +          "$ref": "#/$defs/stac_extensions" | 
| 64 | 64 |         } | 
| 65 | 65 |       ], | 
| 66 | 66 |       "anyOf": [ | 
|  | 
| 74 | 74 |               ] | 
| 75 | 75 |             }, | 
| 76 | 76 |             { | 
| 77 |  | -              "$ref": "#/definitions/fields" | 
|  | 77 | +              "$ref": "#/$defs/fields" | 
| 78 | 78 |             } | 
| 79 | 79 |           ] | 
| 80 | 80 |         }, | 
|  | 
| 91 | 91 |                   "not": { | 
| 92 | 92 |                     "allOf": [ | 
| 93 | 93 |                       { | 
| 94 |  | -                        "$ref": "#/definitions/require_any_field" | 
|  | 94 | +                        "$ref": "#/$defs/require_any_field" | 
| 95 | 95 |                       }, | 
| 96 | 96 |                       { | 
| 97 |  | -                        "$ref": "#/definitions/fields" | 
|  | 97 | +                        "$ref": "#/$defs/fields" | 
| 98 | 98 |                       } | 
| 99 | 99 |                     ] | 
| 100 | 100 |                   } | 
|  | 
| 116 | 116 |                   "not": { | 
| 117 | 117 |                     "allOf": [ | 
| 118 | 118 |                       { | 
| 119 |  | -                        "$ref": "#/definitions/require_any_field" | 
|  | 119 | +                        "$ref": "#/$defs/require_any_field" | 
| 120 | 120 |                       }, | 
| 121 | 121 |                       { | 
| 122 |  | -                        "$ref": "#/definitions/fields" | 
|  | 122 | +                        "$ref": "#/$defs/fields" | 
| 123 | 123 |                       } | 
| 124 | 124 |                     ] | 
| 125 | 125 |                   } | 
|  | 
| 135 | 135 |           ], | 
| 136 | 136 |           "properties": { | 
| 137 | 137 |             "summaries": { | 
| 138 |  | -              "$ref": "#/definitions/require_any_field" | 
|  | 138 | +              "$ref": "#/$defs/require_any_field" | 
| 139 | 139 |             } | 
| 140 | 140 |           } | 
| 141 | 141 |         } | 
| 142 | 142 |       ] | 
| 143 | 143 |     } | 
| 144 | 144 |   ], | 
| 145 |  | -  "definitions": { | 
|  | 145 | +  "$defs": { | 
| 146 | 146 |     "stac_extensions": { | 
| 147 | 147 |       "type": "object", | 
| 148 | 148 |       "required": [ | 
|  | 
| 160 | 160 |     "require_any_field": { | 
| 161 | 161 |       "$comment": "Please list all fields here so that we can force the existence of one of them in other parts of the schemas.", | 
| 162 | 162 |       "anyOf": [ | 
| 163 |  | -        {"required": ["template:new_field"]}, | 
| 164 |  | -        {"required": ["template:xyz"]}, | 
| 165 |  | -        {"required": ["template:another_one"]} | 
|  | 163 | +        { | 
|  | 164 | +          "required": [ | 
|  | 165 | +            "template:new_field" | 
|  | 166 | +          ] | 
|  | 167 | +        }, | 
|  | 168 | +        { | 
|  | 169 | +          "required": [ | 
|  | 170 | +            "template:xyz" | 
|  | 171 | +          ] | 
|  | 172 | +        }, | 
|  | 173 | +        { | 
|  | 174 | +          "required": [ | 
|  | 175 | +            "template:another_one" | 
|  | 176 | +          ] | 
|  | 177 | +        } | 
| 166 | 178 |       ] | 
| 167 | 179 |     }, | 
| 168 | 180 |     "fields": { | 
|  | 
0 commit comments