Open caschbre opened 2 years ago
Thanks @caschbre for the issue. Would love to work this in as an option.
What do you think about a constructor option:
interface customSubschemaPath: JSONPath | JSON-Pointer | regex
or maybe we should accept a JSON schema that extends the meta-schema
{
type: "object",
patternProperties: {
"x-*": {
properties: { $ref: `https://meta.json-schema.tools/` }
}
}
}
Is your feature request related to a problem? Please describe.
From what I could see, traverse only goes down the 'properties' path. However if I were to setup a sibling node (e.g. x-foobar), I'm unable to traverse down that path.
Describe the solution you'd like
Ability to traverse down any path in the schema.