Dl/DataType: Difference between revisions
From stonehomewiki
Jump to navigationJump to search
Stonezhong (talk | contribs) |
Stonezhong (talk | contribs) |
||
| Line 68: | Line 68: | ||
<div class="mw-collapsible-preview">Referencing a type</div> | <div class="mw-collapsible-preview">Referencing a type</div> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
A type can be referenced in the format <code>{"$ref": ""}</ | A type can be referenced in the format <code>{"$ref": type_id}</code> | ||
For example: | |||
<pre><nowiki> | |||
{"$ref": "#/$defs/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"} references a type with id of "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" | |||
</nowiki></pre> | |||
</div> | </div> | ||
</div> | </div> | ||
<p></p> | <p></p> | ||