Skip to content

Traverse non-standard paths. #462

@caschbre

Description

@caschbre

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.

const mySchema = {
  title: "baz",
  type: "object",
  properties: {
    foo: {
      title: "foo",
      type: "array",
      items: { type: "string" }
    },
    bar: {
      title: "bar",
      anyOf: [
        { title: "stringerific", type: "string" },
        { title: "numberoo", type: "number" }
      ]
    }
  },
  "x-foobar": {
    haz: { bar: "foo" }
  }
};

Describe the solution you'd like

Ability to traverse down any path in the schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions