Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) TypeError: t.extends.reduce is not a function #43

Open
azazar opened this issue Jul 6, 2022 · 0 comments
Open

Comments

@azazar
Copy link

azazar commented Jul 6, 2022

I get TypeError when I use schema with a type definition.

Here's the example: https://is.gd/siIJYX

Uncaught (in promise) TypeError: t.extends.reduce is not a function
    at t.extends (jsoneditor.js:14:76223)
    at jsoneditor.js:14:85375
    at Array.forEach (<anonymous>)
    at t.value (jsoneditor.js:14:85288)
    at jsoneditor.js:14:81837
    at Array.forEach (<anonymous>)
    at t.properties (jsoneditor.js:14:81762)
    at jsoneditor.js:14:87186
    at Array.forEach (<anonymous>)
    at t.value (jsoneditor.js:14:87087)

Schema

{
  "title": "Example",
  "type": "object",
  "definitions": {
    "indexFilter": {
      "type": [
        "string",
        "array",
        "null"
      ],
      "uniqueItems": true,
      "items": {
        "type": "string"
      },
      "format": "table"
    }
  },
  "properties": {
    "filters": {
      "title": "Keyword filters",
      "type": "object",
      "properties": {
        "category": {
          "title": "Categrories",
          "extends": {
            "$ref": "#/definitions/indexFilter"
          }
        }
      }
    }
  },
  "format": "categories"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant