Skip to content
Snippets Groups Projects
template: reference
foo: bar

Complex References Schema

https://example.com/schemas/complex

This is an example schema that uses types defined in other schemas.

Abstract Extensible Custom Properties Defined In
Can be instantiated No Forbidden complex.schema.json

Schema Hierarchy

  • Complex References https://example.com/schemas/complex
    • Abstract https://example.com/schemas/abstract
    • Simple https://example.com/schemas/simple

Complex References Properties

Property Type Required Defined by
refabstract complex Required Complex References (this schema)
refnamed complex Optional Complex References (this schema)

refabstract

refabstract

  • is required
  • type: complex
  • defined in this schema

refabstract Type

Unknown type ``.

{
  "properties": {
    "foo": {
      "type": "string",
      "description": "A unique identifier given to every addressable thing."
    }
  },
  "required": true,
  "simpletype": "complex"
}

refnamed

refnamed

  • is optional
  • type: complex
  • defined in this schema

refnamed Type

Unknown type ``.

{
  "$ref": "https://example.com/schemas/simple",
  "$linkVal": "Simple",
  "$linkPath": "simple.schema.md",
  "simpletype": "complex"
}