-- schema.json --
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://test.example/foo",
  "oneOf": [
      {
          "$id": "https://1.test.example/string",
          "type": "string"
      },
      {
          "$id": "https://2.test.example/object",
          "type": "object"
      }
  ]
}

-- out/decode/extract --
@jsonschema(schema="http://json-schema.org/draft-07/schema#")
@jsonschema(id="https://test.example/foo")
matchN(1, [_#defs."/oneOf/0", _#defs."/oneOf/1"])

_#defs: "/oneOf/0": {
	@jsonschema(id="https://1.test.example/string")
	string
}

_#defs: "/oneOf/1": {
	@jsonschema(id="https://2.test.example/object")
	...
}
