Skip to content

Commit

Permalink
docs/tutorial/converting-json-schema-to-cue: use 2020-12 schema
Browse files Browse the repository at this point in the history
Use draft/2020-12 to be more up-to-date in our example.

This will not fix the breaking tip build; that happens in the next CL.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: I2044c9822fdda3ecdeb351f40957deda92dfc361
Dispatch-Trailer: {"type":"trybot","CL":1205925,"patchset":2,"ref":"refs/changes/25/1205925/2","targetBranch":"master"}
  • Loading branch information
myitcv authored and cueckoo committed Dec 17, 2024
1 parent 79f44b2 commit ba7ee6e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions content/docs/tutorial/converting-json-schema-to-cue/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Create a JSON schema file:
{{{with upload "en" "json schema"}}}
-- schema.json --
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": [
Expand All @@ -80,7 +80,7 @@ Create a JSON schema file:
}
}
},
"definitions": {
"$defs": {
"table": {
"type": "object",
"additionalProperties": false,
Expand Down Expand Up @@ -127,7 +127,7 @@ Here, we choose the `cuisine` package.
package cuisine

#restaurant: {
@jsonschema(schema="http://json-schema.org/draft-07/schema#")
@jsonschema(schema="https://json-schema.org/draft/2020-12/schema")
close({
name!: string
cuisine!: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ package site
page: {
cache: {
upload: {
"json schema": "jfEbTSe7qSCZzRSleBi4PCmRHTtKWjQHA0gfziyren8="
"schema.cue": "iKD/BMEMVrR2UYOyDSEcz34lqrW7XscResx21BBLZB0="
"json schema": "iEVS2DSLh/ky16GL3ikDxbDTvIoZMv454zcFfWjBk/Y="
"schema.cue": "3MbJbkYu0kPoCoId58kRl+Y8xmflaaWwoKmU6lQHptg="
"split_pea.yml": "UxEgCk8nWpEluNf8r6tVMWJl9Sh1rS/8SX3/Xpl/1+U="
"pomodoro.yml": "Pt5o2CsF9LCtktGp5Odo3B/vanYAwn7hjVQG1S9sDoU="
"pomodoro.yml fixed": "iKrYngHQKdG8RN6GyUeyk74mQ53lSnQnnfqlNHNACCE="
}
multi_step: {
hash: "SS1JHSITK2AVITGDUMB1T0HS8V74OFNSKTFE44GCUM0B0OB1OCB0===="
scriptHash: "F13IT2J3MN36GG3N09O9518426I38RFFPOPK0L8BIOG0OSCEHI0G===="
hash: "BO5358MUA58V67556OOVNF5IBAS6QSA9M18FNV6U1BE5HODBO4E0===="
scriptHash: "C4LR0D5POADT8TNNESICONGVCB5E89FSU7UHCQ06E31VTC5S7HF0===="
steps: [{
doc: "#ellipsis 1"
cmd: "cue version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Create a JSON schema file:
{{< code-tabs >}}
{{< code-tab name="schema.json" language="json" area="top-left" >}}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": [
Expand All @@ -81,7 +81,7 @@ Create a JSON schema file:
}
}
},
"definitions": {
"$defs": {
"table": {
"type": "object",
"additionalProperties": false,
Expand Down Expand Up @@ -122,7 +122,7 @@ Here, we choose the `cuisine` package.
package cuisine

#restaurant: {
@jsonschema(schema="http://json-schema.org/draft-07/schema#")
@jsonschema(schema="https://json-schema.org/draft/2020-12/schema")
close({
name!: string
cuisine!: string
Expand Down

0 comments on commit ba7ee6e

Please sign in to comment.