question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to generate forms for combined schemas

See original GitHub issue

I have setup this liform library within my project and it works fine, (without styling though). However some schemas, (like the one i need to use it for) don’t generate any form, just a submit button. I don’t understand this behaviour. But i have noticed it happens with all schemas I have tried that have schema combination key words like anyOff, allOf, oneOf. A sample form of a schema that fails is this:

   {
  "definitions": {
    "address": {
      "type": "object",
      "properties": {
        "street_address": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      },
      "required": [
        "street_address",
        "city",
        "state"
      ]
    }
  },
  "allOf": [
    {
      "$ref": "#/definitions/address"
    },
    {
      "properties": {
        "type": {
          "enum": [
            "residential",
            "business"
          ]
        }
      }
    }
  ]
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
gastonchecommented, Jun 19, 2017

Yeah, I cloned the repo already, I will start going through, hopefully I will get upto speed soon enough to try out any other option.

0reactions
gastonchecommented, Jun 22, 2017

@nacmartin okay. I will get back to you soon, once I have done something on that. Thanks again

Read more comments on GitHub >

github_iconTop Results From Across the Web

Schema Validation Failed: 'DueDate' + Get Response Details
hi friends, i need some help with a Microsoft Forms + Planner automation. i was receiving an " Action 'Create_a_task' failed" error on...
Read more >
Unable to generate json schema · Issue #88
My eventual goal is to be able to use the json schema with the brutusin:json-forms package to browse, edit, and validate schema instances....
Read more >
formio - How to generate form back from JSON Schema in ...
I am looking for how to reinitialize the form builder back from JSON. JSON was generated from the form builder's builder.instance.schema .
Read more >
How do I avoid Schema Validation Errors in my e-filed returns ...
A schema validation error is an error in the required formatting of the electronic file established by the taxing ... Avoid using government...
Read more >
Understanding JSON Schema 2020-12 documentation
JSON Schema includes a few keywords for combining schemas together. ... constraints that can't otherwise be expressed with standard JSON Schema keywords.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found