diff --git a/examples/docs/arrays.schema.md b/examples/docs/arrays.schema.md index 027103d1262a8d56776423e98e31fe1936cd87b4..c5107aa487895f1183beb84fafb35f3dfe72d3d2 100644 --- a/examples/docs/arrays.schema.md +++ b/examples/docs/arrays.schema.md @@ -27,6 +27,7 @@ This is an example schema with examples for multiple array types and their const | [numlist](#numlist) | `number[]` | Optional | Arrays (this schema) | | [objectlist](#objectlist) | `object[]` | Optional | Arrays (this schema) | | [stringlistlist](#stringlistlist) | `string[][]` | Optional | Arrays (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## boollist diff --git a/examples/docs/complex.schema.md b/examples/docs/complex.schema.md index a6b9690dea84a20e074ad3255d8235cef0cd87e0..32d266333f2f7c61fef9da789d7c8ac3b1593ebc 100644 --- a/examples/docs/complex.schema.md +++ b/examples/docs/complex.schema.md @@ -31,7 +31,7 @@ This is an example schema that uses types defined in other schemas. | [reflist](#reflist) | Simple | Optional | Complex References (this schema) | | [refnamed](#refnamed) | Simple | Optional | Complex References (this schema) | | [xor](#xor) | complex | Optional | Complex References (this schema) | -| `*` | `any` | Optional | this schema *allows* additional properties | +| `*` | any | Optional | this schema *allows* additional properties | ## and diff --git a/examples/docs/constants.schema.md b/examples/docs/constants.schema.md index 441894e35883da59702337e31aad1c7c6f368b27..0c1dc998426d9f176e35843e5d09e8a426fd36be 100644 --- a/examples/docs/constants.schema.md +++ b/examples/docs/constants.schema.md @@ -20,6 +20,7 @@ This is an example schema with examples for properties with constant values | Property | Type | Required | Defined by | |----------|------|----------|------------| | [hello](#hello) | `const` | **Required** | Constant Types (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## hello diff --git a/examples/docs/custom.schema.md b/examples/docs/custom.schema.md index c09153237ef94cb7978ef7e335a1e4a8591f2ab4..66dc0323ba81f709af2e617f3fd6dd1b956e142f 100644 --- a/examples/docs/custom.schema.md +++ b/examples/docs/custom.schema.md @@ -21,6 +21,7 @@ This is an extensible schema. It has `definitions`, that can be used in other sc |----------|------|----------|------------| | [bar](#bar) | `string` | Optional | Custom (this schema) | | [foo](#foo) | `string` | Optional | Custom (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## bar diff --git a/examples/docs/deepextending.schema.md b/examples/docs/deepextending.schema.md index 879b73d9f2a44eb9bc105e4e64ec3f93d9d012d1..223cf8c6c1c56146674000d06db28557ff8050e5 100644 --- a/examples/docs/deepextending.schema.md +++ b/examples/docs/deepextending.schema.md @@ -32,6 +32,7 @@ This is an extending schema. It is extending another extending schema. It pulls | [hey](#hey) | `string` | Optional | Deeply Extending (this schema) | | [id](#id) | `string` | Optional | [Definitions](definitions.schema.md#id) | | [meta:id](#metaid) | `string` | Optional | [Definitions](definitions.schema.md#metaid) | +| `*` | any | Optional | this schema *allows* additional properties | ## @id diff --git a/examples/docs/definitions.schema.md b/examples/docs/definitions.schema.md index 1a2266c1863f834e4792ab60912a6b78e318e0f9..a44a048ecb6d3807e0b7e412e89e2f06d8906f1d 100644 --- a/examples/docs/definitions.schema.md +++ b/examples/docs/definitions.schema.md @@ -36,6 +36,7 @@ aks. | [@id](#@id) | `string` | Optional | Definitions (this schema) | | [id](#id) | `string` | **Required** | Definitions (this schema) | | [meta:id](#metaid) | `string` | Optional | Definitions (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## @id diff --git a/examples/docs/enums.schema.md b/examples/docs/enums.schema.md index 35106928b5be642491cc0308190d7597794a1c0d..dc2be538fbd04faacead0ede189ae91c0e8c603e 100644 --- a/examples/docs/enums.schema.md +++ b/examples/docs/enums.schema.md @@ -20,6 +20,7 @@ This is an example schema with examples for properties with enum values | Property | Type | Required | Defined by | |----------|------|----------|------------| | [hello](#hello) | `enum` | **Required** | Enumerated (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## hello diff --git a/examples/docs/example.schema.md b/examples/docs/example.schema.md index 83bd5812deff8596eee9e4e8b0f47bcdddc36ab3..6d0b7944ae4d6efd58a13bcd613d40cdfedaa7e0 100644 --- a/examples/docs/example.schema.md +++ b/examples/docs/example.schema.md @@ -29,6 +29,7 @@ This is an example schema with examples. Too many examples? There can never be t |----------|------|----------|------------| | [bar](#bar) | `string` | Optional | Example (this schema) | | [foo](#foo) | `string` | Optional | Example (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## bar diff --git a/examples/docs/examples.schema.md b/examples/docs/examples.schema.md index 7b1fc7b06d455871baae281aadab15d97947add0..fb048ff268e1761b59e85cc156f08f30db9280b4 100644 --- a/examples/docs/examples.schema.md +++ b/examples/docs/examples.schema.md @@ -38,6 +38,7 @@ This is an example schema with *multiple* examples. Too many examples? There can |----------|------|----------|------------| | [bar](#bar) | `string` | **Required** | Examples (this schema) | | [foo](#foo) | `string` | Optional | Examples (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## bar diff --git a/examples/docs/extending.schema.md b/examples/docs/extending.schema.md index e88d7bdfc09921d29472ec43b1b0a0654646616f..00ecd6b15b8a95283067b1b48b3801acbd6b1311 100644 --- a/examples/docs/extending.schema.md +++ b/examples/docs/extending.schema.md @@ -30,6 +30,7 @@ This is an extending schema. It pulls `definitions` from other schemas. | [baz](#baz) | `string` | Optional | Extending (this schema) | | [id](#id) | `string` | Optional | [Definitions](definitions.schema.md#id) | | [meta:id](#metaid) | `string` | Optional | [Definitions](definitions.schema.md#metaid) | +| `*` | any | Optional | this schema *allows* additional properties | ## @id diff --git a/examples/docs/simple.schema.md b/examples/docs/simple.schema.md index 3e3d68782a9edcf358ee54db12d93f345c2a88b5..b3c08dc96d4ac3a6fd83d29a9724a9d7bb24e0e8 100644 --- a/examples/docs/simple.schema.md +++ b/examples/docs/simple.schema.md @@ -20,6 +20,7 @@ This is a *very* simple example of a JSON schema. There is only one property. | Property | Type | Required | Defined by | |----------|------|----------|------------| | [id](#id) | `string` | Optional | Simple (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## id diff --git a/examples/docs/simpletypes.schema.md b/examples/docs/simpletypes.schema.md index de8710c248ed1251ab962148b14845492f56be1e..93ddfe5e69ffae1cd6a401434ff82f468dae5085 100644 --- a/examples/docs/simpletypes.schema.md +++ b/examples/docs/simpletypes.schema.md @@ -36,6 +36,7 @@ This is an example schema with examples for multiple types and their constraints | [string_unconstrained](#string_unconstrained) | `string` | Optional | Simple Types (this schema) | | [string_uri](#string_uri) | `string` | Optional | Simple Types (this schema) | | [yesno](#yesno) | `boolean` | **Required** | Simple Types (this schema) | +| `*` | any | Optional | this schema *allows* additional properties | ## integer_threes diff --git a/templates/md/properties.ejs b/templates/md/properties.ejs index f2487748dcb67c43afe5b19bf69261678b6b2769..b57f6e6361852c53fa69c59654b42a579c68435f 100644 --- a/templates/md/properties.ejs +++ b/templates/md/properties.ejs @@ -18,6 +18,6 @@ %><%= title %> (this schema)<% } %> | <% }); -%><% if (additional) { %> -| `*` | `any` | Optional | this schema *allows* additional properties | +%><% if (additional!==false||additional===undefined) { %> +| `*` | any | Optional | this schema *allows* additional properties | <% } %> \ No newline at end of file