guillotinaweb / ngx-schema-form

HTML form generation based on JSON Schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Huge amount of warnings

daniele-pecora opened this issue · comments

Due to the lazy mechanism of visibilityIf conditions warning are logged into console.
Having a complex schema form may cause a load of warnings in log console.

warnings

I guess we should not display any warning if we are not sure a property is truly missing.
(and I am not a big fan of console warning anyway)

@ebrehault
What about implementing a very basic logging abstraction?
This could be enabled on any formProperty like:

     "schema" : {
              "type": "object",
              "properties" : {
               },
              "widget": {
                        "debug": {
                                 "logLevel": "error"
                        }
               }
     }

It sounds a bit out of scope to put it in the schema.
I would prefer a constant in the app module providers.

sound good and sufficient :-)