Skip to content

Commit 8998b50

Browse files
committed
schema URIs
Signed-off-by: Clemens Vasters <clemens@vasters.com>
1 parent 4906424 commit 8998b50

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

json-structure-primer.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Example:
233233

234234
```json
235235
{
236-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
236+
"$schema": "https://json-structure.github.io/meta/core/v0",
237237
"$defs" : {
238238
"AddressBase": {
239239
"abstract": true,
@@ -285,7 +285,7 @@ applied to any _StreetAddress_ types in a document:
285285

286286
```json
287287
{
288-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
288+
"$schema": "https://json-structure.github.io/meta/core/v0",
289289
"$id": "https://schemas.vasters.com/Addresses",
290290
"$root": "#/$defs/StreetAddress",
291291
"$offers": {
@@ -395,13 +395,13 @@ by shadowing definitions from the imported meta-schema.
395395
The ["core" meta-schema](./json-schema-core-metaschema-core.json) formally
396396
defines the elements described in the [JSON Structure Core][JSTRUCT-CORE]
397397
document. The "$id" of the core meta-schema is
398-
`https://schemas.vasters.com/experimental/json-schema-core/v0`.
398+
`https://json-structure.github.io/meta/core/v0`.
399399

400400
The ["extended" meta-schema](./json-schema-metaschema-extended.json) extends the
401401
core meta-schema with all additional features and capabilities provided by the
402402
companion specifications and offers those features to schema authors. The "$id"
403403
of the extended meta-schema is
404-
`https://schemas.vasters.com/experimental/json-schema-extended/v0`.
404+
`https://json-structure.github.io/meta/extended/v0`.
405405

406406
The ["validation" meta-schema](./json-schema-metaschema-validation.json) enables
407407
all add-ins defined in the extended meta-schema.
@@ -416,7 +416,7 @@ Here is an example of a simple object type definition:
416416

417417
```json
418418
{
419-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
419+
"$schema": "https://json-structure.github.io/meta/core/v0",
420420
"type": "object",
421421
"name": "Person",
422422
"properties": {
@@ -446,7 +446,7 @@ types:
446446

447447
```json
448448
{
449-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
449+
"$schema": "https://json-structure.github.io/meta/core/v0",
450450
"type": "object",
451451
"name": "UserProfile",
452452
"properties": {
@@ -475,7 +475,7 @@ type cannot be referenced from other types in the schema.
475475

476476
```json
477477
{
478-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
478+
"$schema": "https://json-structure.github.io/meta/core/v0",
479479
"type": "object",
480480
"name": "UserProfile",
481481
"properties": {
@@ -508,7 +508,7 @@ can be referenced by other types in the same document. Here is an example:
508508

509509
```json
510510
{
511-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
511+
"$schema": "https://json-structure.github.io/meta/core/v0",
512512
"type": "object",
513513
"name": "UserProfile",
514514
"properties": {
@@ -549,7 +549,7 @@ namespaces to structure your types, with two differing `Address` types:
549549

550550
```json
551551
{
552-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
552+
"$schema": "https://json-structure.github.io/meta/core/v0",
553553
"type": "object",
554554
"name": "UserProfile",
555555
"properties": {
@@ -592,7 +592,7 @@ from defining an object:
592592

593593
```json
594594
{
595-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
595+
"$schema": "https://json-structure.github.io/meta/core/v0",
596596
"type": "array",
597597
"items": { "type": "string" }
598598
}
@@ -603,7 +603,7 @@ reference the type from elsewhere in the schema:
603603

604604
```json
605605
{
606-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
606+
"$schema": "https://json-structure.github.io/meta/core/v0",
607607
"type": "array",
608608
"items": {
609609
"type": "object",
@@ -621,7 +621,7 @@ To declare an array of a reusable type, you can use the `$ref` keyword:
621621

622622
```json
623623
{
624-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
624+
"$schema": "https://json-structure.github.io/meta/core/v0",
625625
"type": "array",
626626
"items": { "type" : { "$ref": "#/$defs/Person" } },
627627
"$defs": {
@@ -645,7 +645,7 @@ This example shows how to declare a map of strings to `Color` objects:
645645

646646
```json
647647
{
648-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
648+
"$schema": "https://json-structure.github.io/meta/core/v0",
649649
"type": "map",
650650
"values": { "type": { "$ref": "#/$defs/Color" } },
651651
"$defs": {
@@ -682,7 +682,7 @@ This example shows how to declare a set of strings:
682682

683683
```json
684684
{
685-
"$schema": "https://schemas.vasters.com/experimental/json-schema-core/v0",
685+
"$schema": "https://json-structure.github.io/meta/core/v0",
686686
"type": "set",
687687
"items": { "type": "string" }
688688
}
@@ -701,7 +701,7 @@ The JSON Structure Core specification is designed to be extensible through compa
701701
specifications that provide additional features and capabilities.
702702

703703
The extended schema that includes all companion specifications is identified by
704-
the `https://schemas.vasters.com/experimental/json-schema-extended/v0` URI. Each
704+
the `https://json-structure.github.io/meta/extended/v0` URI. Each
705705
companion specification is identified by a unique identifier that can be used in
706706
the `$uses` attribute to activate the companion specification for the schema
707707
document.
@@ -724,7 +724,7 @@ Here is an example of how to use the `altnames` keyword:
724724

725725
```json
726726
{
727-
"$schema": "https://schemas.vasters.com/experimental/json-schema/v0",
727+
"$schema": "https://json-structure.github.io/meta/extended/v0",
728728
"$uses": ["Altnames"],
729729
"Person": {
730730
"type": "object",
@@ -779,7 +779,7 @@ Here is an example of how to use the `altenums` keyword:
779779

780780
```json
781781
{
782-
"$schema": "https://schemas.vasters.com/experimental/json-schema/v0",
782+
"$schema": "https://json-structure.github.io/meta/extended/v0",
783783
"$uses": ["Altnames"],
784784
"type": "object",
785785
"name": "Color",
@@ -822,7 +822,7 @@ Here is an example of how to use the `unit` keyword:
822822

823823
```json
824824
{
825-
"$schema": "https://schemas.vasters.com/experimental/json-schema/v0",
825+
"$schema": "https://json-structure.github.io/meta/extended/v0",
826826
"$uses": ["Units"],
827827
"type": "object",
828828
"name": "Pressure",
@@ -848,7 +848,7 @@ Here is an example of how to use the `currency` keyword:
848848

849849
```json
850850
{
851-
"$schema": "https://schemas.vasters.com/experimental/json-schema/v0",
851+
"$schema": "https://json-structure.github.io/meta/extended/v0",
852852
"$uses": ["Units"],
853853
"type": "object",
854854
"name": "Price",

0 commit comments

Comments
 (0)