diff --git a/examples/docs/subdir/subdir.schema.md b/examples/docs/subdir/subdir.schema.md index 12e4f205dc58e75aaf7c717ad072f98fbfcaf4a8..8daa9c9d112423ad6993f13dd44734b96a75ec00 100644 --- a/examples/docs/subdir/subdir.schema.md +++ b/examples/docs/subdir/subdir.schema.md @@ -13,23 +13,14 @@ A schema in a sub directory | [Abstract](../../abstract.md) | Extensible | [Status](../../status.md) | Identifiable | Custom Properties | Additional Properties | Defined In | |-------------------------------|------------|---------------------------|--------------|-------------------|-----------------------|------------| -| Cannot be instantiated | Yes | Experimental | No | Forbidden | Permitted | [subdir/subdir.schema.json](subdir.schema.json) | +| Can be instantiated | Yes | Experimental | No | Forbidden | Permitted | [subdir/subdir.schema.json](subdir.schema.json) | +# Subdir Properties -**All** of the following *requirements* need to be fulfilled. - - -#### Requirement 1 - - -* []() – `#/definitions/id` - - -# Subdir Definitions - -| Property | Type | Group | -|----------|------|-------| -| [id](#id) | `string` | `https://example.com/schemas/subdir/subdir#/definitions/content` | +| Property | Type | Required | Nullable | Defined by | +|----------|------|----------|----------|------------| +| [id](#id) | `string` | Optional | No | Subdir (this schema) | +| `*` | any | Additional | Yes | this schema *allows* additional properties | ## id @@ -52,3 +43,13 @@ A unique identifier given to every addressable thing. + + +**All** of the following *requirements* need to be fulfilled. + + +#### Requirement 1 + + +* []() – `#/definitions/content` + diff --git a/examples/generated-schemas/subdir/subdir.schema.json b/examples/generated-schemas/subdir/subdir.schema.json index c2009a241546b96d83bae7a3510123a5ecd5ea78..b5c141859595a6823a47013c118e624014243a44 100644 --- a/examples/generated-schemas/subdir/subdir.schema.json +++ b/examples/generated-schemas/subdir/subdir.schema.json @@ -23,7 +23,7 @@ }, "allOf": [ { - "$ref": "#/definitions/id" + "$ref": "#/definitions/content" } ] } \ No newline at end of file diff --git a/examples/schemas/subdir/subdir.schema.json b/examples/schemas/subdir/subdir.schema.json index de5d89d62b2e1927b6b57f19659e9de0c5eafcad..59493da51641c0538ff7f84793f02e2590855f3e 100644 --- a/examples/schemas/subdir/subdir.schema.json +++ b/examples/schemas/subdir/subdir.schema.json @@ -22,6 +22,6 @@ } }, "allOf": [ - {"$ref": "#/definitions/id"} + {"$ref": "#/definitions/content"} ] } \ No newline at end of file diff --git a/spec/examples/subdir/subdir.schema.md b/spec/examples/subdir/subdir.schema.md index b5b46a7a9eb5bc8bd8a1751c4ba9d5e928e469cf..8daa9c9d112423ad6993f13dd44734b96a75ec00 100644 --- a/spec/examples/subdir/subdir.schema.md +++ b/spec/examples/subdir/subdir.schema.md @@ -13,23 +13,14 @@ A schema in a sub directory | [Abstract](../../abstract.md) | Extensible | [Status](../../status.md) | Identifiable | Custom Properties | Additional Properties | Defined In | |-------------------------------|------------|---------------------------|--------------|-------------------|-----------------------|------------| -| Cannot be instantiated | Yes | Experimental | No | Forbidden | Permitted | [subdir/subdir.schema.json](subdir/subdir.schema.json) | +| Can be instantiated | Yes | Experimental | No | Forbidden | Permitted | [subdir/subdir.schema.json](subdir.schema.json) | +# Subdir Properties -**All** of the following *requirements* need to be fulfilled. - - -#### Requirement 1 - - -* []() – `#/definitions/id` - - -# Subdir Definitions - -| Property | Type | Group | -|----------|------|-------| -| [id](#id) | `string` | `https://example.com/schemas/subdir/subdir#/definitions/content` | +| Property | Type | Required | Nullable | Defined by | +|----------|------|----------|----------|------------| +| [id](#id) | `string` | Optional | No | Subdir (this schema) | +| `*` | any | Additional | Yes | this schema *allows* additional properties | ## id @@ -52,3 +43,13 @@ A unique identifier given to every addressable thing. + + +**All** of the following *requirements* need to be fulfilled. + + +#### Requirement 1 + + +* []() – `#/definitions/content` +