ioBroker / ioBroker.admin

user interface for configuration and administration
https://iobroker.net
MIT License
270 stars 79 forks source link

Adapter XYZ has an invalid jsonConfig [bug]: #2537

Closed AlRo75 closed 2 months ago

AlRo75 commented 3 months ago

No existing issues.

Describe the bug

Bei diversen Adaptern bekomme ich die Meldung

netatmo has an invalid jsonConfig: [{"instancePath":"/items/_authenticate","schemaPath":"#/definitions/sendToProps/additionalProperties","keyword":"additionalProperties","params":{"additionalProperty":"window"},"message":"must NOT have additional properties"},{"instancePath":"","schemaPath":"#/if","keyword":"if","params":{"failingKeyword":"else"},"message":"must match \"else\" schema"}]

wie hier z.B. bei Netatmo oder Imap.

imap has an invalid jsonConfig: [{"instancePath":"/items/tab1/items/max_mb_telegram","schemaPath":"#/additionalProperties","keyword":"additionalProperties","params":{"additionalProperty":"adapter"},"message":"must NOT have additional properties"},{"instancePath":"/items/tab1/items/max_mb_telegram","schemaPath":"#/patternProperties/%5E.%2B/allOf/21/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"/items/tab1","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/8/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"","schemaPath":"#/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}]

To Reproduce

Das ganze kann reproduziert werden. In den Instanzen bei dem Adapter einfach die Einstellungen öffnen und wieder schließen (reicht schon).

Expected behavior

kein Fehler

Screenshots & Logfiles

image

Adapter version

6.13.16

js-controller version

5.0.19

Node version

18.20.3 / 10.7.0

Operating system

Ubuntu 22.04 LTS

Additional context

No response

mcm1957 commented 3 months ago

Dies ist KEIN Fehler des Admin Adapters sondern ein Fehler in der json Config des Adapters XYZ (oder ev Ein Fehler im Prüfschema).

Bitte bei jeweiligen Adapter ein Issue mit der Fehlermeldung des betroffenen Adapters öffnen.

Apollon77 commented 3 months ago

... unless it's a jsonschema issue :-)

mcm1957 commented 3 months ago

... unless it's a jsonschema issue :-)

I noted " oder ev ein Fehler im Prüfschema"

Attribute "adapter" at imap is definitly an adapter error.

And IF its an eror at schema ist no admin issue either but should / must be Registern at react-v5.

Sp I suggest to close here an create issues at the effected adapters.

P.S. clonig at mobile is to much effort. Sorry for now. Will do after holidays if still open.

GermanBluefox commented 2 months ago

Fixed: https://github.com/ioBroker/adapter-react-v5/pull/360/files#diff-05c5c7b94822aba01fd0d1d134454d545293cafede46ade90004e0d85ccd5599R716