angular2-json-schema-form icon indicating copy to clipboard operation
angular2-json-schema-form copied to clipboard

Array where value is null

Open tmburnell opened this issue 8 years ago • 3 comments

Issue type

I'm submitting a (check one): [x] Bug report [ ] Feature request [ ] Regression (something that used to work, but stopped working in a newer version) [x] Support request [ ] Documentation issue or request

Prerequisites

Before posting, make sure you do the following (check all): [x] Confirm you are using the latest versions of all necessary packages (or if not, explain why not) [x] Search GitHub for a similar issue or PR [ ] If submitting a Support request, also search [Stack Overflow][stack-overflow] for similar issues Note: Please cross-post GitHub support requests to [Stack Overflow][stack-overflow], and include a link in your GitHub issue to your Stack Overflow question. We do currently respond to support requests on GitHub, but we eventually expect to stop, and will then refer all support questions exclusively to Stack Overflow.

Current behavior

I have a array of objects in my schema ... and when it loads with null i get the following error: Cannot read property 'forEach' of null

Expected behavior

Should not error and fully load.

IMPORTANT: How can we reproduce your problem?

I cant quite get the demo site to produce the same error (but could but that it is not loading with the null). But here is am example of what i think should cause the error.

{
  "schema": {
    "type": "object",
    "properties": {
      "first_name": { "type": "string" },
      "phone_numbers": {
        "type": "array",
        "items": {
          "type": "object",
          "title": "phone",
          "properties": {
            "number": { "type": "number" }
          }
        }
      }
    }
  },
  "data": {
    "first_name": "Jane",
    "phone_numbers": null
  }
}

Any other relevant information

If this is not a bug is there any advice on how to not get it to error?

tmburnell avatar Nov 27 '17 15:11 tmburnell

Hay un problema entre la lib Perl XMPP y algunos servidores Jabber (ejabberd, ...). Una solución al problema es editar el archivo "Net/XMPP/ Protocol.pm" con su editor de texto favorito. En Debian, el directorio « Net » se encuentra en "/usr/share/perl5/." Bajo Fedora, que se encuentra en "/usr/lib/perl5/vendor_perl/5.8.x/".

Ir a 1,772 Online: return $ self-> AuthSASL (% args); Y comentar la línea mediante la adición de "#": #return $ self-> AuthSASL (% args);

suchatorg avatar Oct 25 '16 00:10 suchatorg