Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions draft-vasters-json-structure-import.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---

title: "JSON Structure: Import"
Expand Down Expand Up @@ -336,8 +336,12 @@

## Enabling the Extensions {#enabling-the-extensions}

The import extensions are available and enabled by default via the extended
meta-schema:
This add-in's keywords (`$import`, `$importdefs`) are identified as
`JSONStructureImport` for the purposes of the `$uses` and `$offers` keywords
of a meta-schema. Unlike the other add-ins defined by companion
specifications, `JSONStructureImport` is listed in the extended meta-schema's
own `$uses`, so it is available and enabled by default via the extended
meta-schema without a schema author needing to list it in their own `$uses`:

~~~ json
{
Expand All @@ -347,7 +351,7 @@
"type": "object",
"properties": {
"name": {
"type": "string",
"type": "string"
},
"address": {
"type": { "$ref": "#/definitions/Person/Address" }
Expand Down
Loading