cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/txtar/missingfragment_version.txtar (about)

     1  // This tests that we can use an ID without the conventional empty fragment that's
     2  // present in the canonical URI.
     3  -- schema.json --
     4  {
     5    "$schema": "http://json-schema.org/draft-04/schema",
     6    "id": "http://example.test",
     7    "type": "string"
     8  }
     9  -- out/decode/extract --
    10  @jsonschema(schema="http://json-schema.org/draft-04/schema#")
    11  @jsonschema(id="http://example.test")
    12  string