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

     1  #strictKeywords
     2  
     3  Note: x-bar does _not_ cause an error even with StrictKeywords
     4  enabled.
     5  
     6  -- schema.json --
     7  {
     8    "$schema": "https://json-schema.org/draft/2020-12/schema",
     9    "type": "number",
    10    "$dynamicAnchor": "bar",
    11    "foo": true,
    12    "x-bar": true
    13  }
    14  -- out/decode/extract --
    15  ERROR:
    16  unknown keyword "foo":
    17      schema.json:5:3