klein0r / ioBroker.awtrix-light

Integrate your Awtrix Light device (e.g. Ulanzi TC001) via HTTP
https://haus-automatisierung.com
MIT License
62 stars 4 forks source link

admin.0 (481696) awtrix-light has an invalid jsonConfig #84

Closed Grothesk242 closed 7 months ago

Grothesk242 commented 10 months ago

The problem

The log shows:

2023-10-28 15:10:01.795  - warn: admin.0 (481696) awtrix-light has an invalid jsonConfig: [{"instancePath":"/items/_options/items/_buyDeviceLink/label","schemaPath":"#/patternProperties/%5E.%2B/properties/label/oneOf/0/type","keyword":"type","params":{"type":"string"},"message":"must be string"},{"instancePath":"/items/_options/items/_buyDeviceLink/label","schemaPath":"#/definitions/multilingual/additionalProperties","keyword":"additionalProperties","params":{"additionalProperty":"uk"},"message":"must NOT have additional properties"},{"instancePath":"/items/_options/items/_buyDeviceLink/label","schemaPath":"#/patternProperties/%5E.%2B/properties/label/oneOf","keyword":"oneOf","params":{"passingSchemas":null},"message":"must match exactly one schema in oneOf"},{"instancePath":"/items/_options","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/8/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}]

Not sure if really a fault or just a false positive.

Version of nodejs

v18.18.2

Version of ioBroker js-controller

5.0.15

Version of Adapter

awtrix-light@0.10.0

Version of awtrix-light firmware

0.90

Operating system running ioBroker

Debian 12 'Bookworm'

Checklist of files to include below

Additional information & file uploads

2023-10-28 15:10:01.795 - warn: admin.0 (481696) awtrix-light has an invalid jsonConfig: [{"instancePath":"/items/_options/items/_buyDeviceLink/label","schemaPath":"#/patternProperties/%5E.%2B/properties/label/oneOf/0/type","keyword":"type","params":{"type":"string"},"message":"must be string"},{"instancePath":"/items/_options/items/_buyDeviceLink/label","schemaPath":"#/definitions/multilingual/additionalProperties","keyword":"additionalProperties","params":{"additionalProperty":"uk"},"message":"must NOT have additional properties"},{"instancePath":"/items/_options/items/_buyDeviceLink/label","schemaPath":"#/patternProperties/%5E.%2B/properties/label/oneOf","keyword":"oneOf","params":{"passingSchemas":null},"message":"must match exactly one schema in oneOf"},{"instancePath":"/items/_options","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/8/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}]

github-actions[bot] commented 10 months ago

Thanks for reporting a new issue @Grothesk242!

  1. Please make sure your topic is not covered in the documentation
  2. Ensure that you use the latest beta version (not the current stable version): 0.10.0
  3. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
  4. Search for the issue topic in other/closed issues to avoid duplicates!

    Otherwise this issue will be closed.

klein0r commented 10 months ago

Already hate the validation, since the schema is incomplete 😞 Opened an issue for some of the messages:

https://github.com/ioBroker/adapter-react-v5/issues/198