Skip to content

Commit fe0662f

Browse files
committed
Suggest the use of jsonschema metaschema in all reference tables
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 122759e commit fe0662f

File tree

9 files changed

+2
-22
lines changed

9 files changed

+2
-22
lines changed

content/2020-12/core/comment.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ schemas and over the wire.
4444

4545
{{</learning-more>}}
4646

47-
{{<metaschema-check-type `string`>}}
48-
4947
## Examples
5048

5149
{{<schema `A schema that declares a top level and a nested comment`>}}

content/2020-12/meta-data/deprecated.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ conditions determined by a dynamic operator like [`anyOf`]({{< ref
5757

5858
{{</common-pitfall>}}
5959

60-
{{<metaschema-check-type `boolean`>}}
61-
6260
## Examples
6361

6462
{{<schema `A schema that statically marks the city optional object property as deprecated`>}}

content/2020-12/meta-data/description.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ is through annotation collection.
5454

5555
{{</common-pitfall>}}
5656

57-
{{<metaschema-check-type `string`>}}
58-
5957
## Examples
6058

6159
{{<schema `A schema that declares a top level description alongside a short title`>}}

content/2020-12/meta-data/examples.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ including this one.
5151

5252
{{</best-practice>}}
5353

54-
{{<metaschema-check-type `array`>}}
55-
5654
## Examples
5755

5856
{{<schema `A schema that describes name and age properties and declares top level and nested valid examples`>}}

content/2020-12/meta-data/readOnly.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ conditions determined by a dynamic operator like [`anyOf`]({{< ref
6363

6464
{{</common-pitfall>}}
6565

66-
{{<metaschema-check-type `boolean`>}}
67-
6866
## Examples
6967

7068
{{<schema `A schema that statically marks the id optional object property as read only`>}}

content/2020-12/meta-data/title.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ is through annotation collection.
5858

5959
{{</common-pitfall>}}
6060

61-
{{<metaschema-check-type `string`>}}
62-
6361
## Examples
6462

6563
{{<schema `A schema that declares a top level title`>}}

content/2020-12/meta-data/writeOnly.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ conditions determined by a dynamic operator like [`anyOf`]({{< ref
6363

6464
{{</common-pitfall>}}
6565

66-
{{<metaschema-check-type `boolean`>}}
67-
6866
## Examples
6967

7068
{{<schema `A schema that statically marks the password optional object property as write only`>}}

layouts/_default/single.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ <h1 class="fw-bold">{{ .Params.keyword }}</h1>
4141
<td class="text-break">
4242
{{ if isset .Params "value" }}
4343
<small>{{ .Params.value | markdownify }}</small>
44+
<small class="d-block mt-2 pt-1 border-top text-muted"><b>Hint:</b> Use the <a href="https://github.com/sourcemeta/jsonschema/blob/main/docs/metaschema.markdown"><code>jsonschema metaschema</code></a> command to catch keywords set to invalid values</small>
4445
{{ else }}
4546
{{ errorf "Keyword is missing value description" }}
4647
{{ end }}
@@ -177,7 +178,7 @@ <h1 class="fw-bold">{{ .Params.keyword }}</h1>
177178
{{ if isset .Params "annotation" }}
178179
{{ partial "instance-badges.html" (dict "types" .Params.annotation.kind) }}
179180
<small>{{ .Params.annotation.description }}</small>
180-
<small class="d-block mt-2 pt-1 border-top"><b>Hint:</b> You can use the <a href="https://github.com/sourcemeta/jsonschema/blob/main/docs/validate.markdown"><code>jsonschema validate</code></a> command to collect annotations from the command-line</small>
181+
<small class="d-block mt-2 pt-1 border-top text-muted"><b>Hint:</b> Use the <a href="https://github.com/sourcemeta/jsonschema/blob/main/docs/validate.markdown"><code>jsonschema validate</code></a> command to collect annotations from the command-line</small>
181182
{{ else }}
182183
<small>None</small>
183184
{{ end }}

layouts/shortcodes/metaschema-check-type.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)