Liquid Studio Documentation
JSON Schema Editor / Properties / Anchor
In This Topic
    In This Topic
    Draft 04 Draft 06 Draft 07 Draft 2019-09 Draft 2020-12

    Allows named anchors to be defined that are not relative to the position in the schema (they are relative to the baseUri of the schema in which they are defined).

    So if you have a schema "c:\myschema.json" you set "$anchor" : "foo" on a schema object within that file, then you can address that schema object using "$ref": "#foo".

    $anchor effectively makes the qualified name of the schema <BaseUri>#foo

    If present, the value of this keyword MUST be a string, which MUST start with a letter ([A-Za-z]), followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), or periods (".").


    See Also