ioBroker.admin icon indicating copy to clipboard operation
ioBroker.admin copied to clipboard

[jsonConfig]: admin has an invalid jsonConfig

Open Diginix opened this issue 9 months ago • 4 comments

No existing issues.

  • [x] There is no existing issue for my request.

Problem location

ioBroker Log

Warning message

After editing admin instance settings: 2025-05-09 13:15:18.611 - warn: admin.0 (1744754) admin has an invalid jsonConfig: [{"instancePath":"/items/loadingTab/items/loading-bg.png/accept","schemaPath":"#/patternProperties/%5E.%2B/allOf/10/then/properties/accept/type","keyword":"type","params":{"type":"object"},"message":"must be object"},{"instancePath":"/items/loadingTab","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/9/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"","schemaPath":"#/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}]

Source link

https://github.com/ioBroker/ioBroker.admin/blob/d64077fb7249005a1253de90eb54d0d84f019679/packages/admin/admin/jsonConfig.json5#L201

Additional information

admin: <=7.6.17 js-controller: 7.0.7 nodejs: 20.19.1

EDIT/mcm1957: Sourcelink added

Diginix avatar May 09 '25 11:05 Diginix

@Diginix Does the problem still occure with current admin verion (7.6.17?) You specify <= 7.6.17 - not sure if <= is corre t or a typo.

mcm1957 avatar May 09 '25 11:05 mcm1957

Yes, my log today is from admin 7.6.17. I was changing the session timeout seconds. But it isn't new with 7.6.17. That's why I wrote <=7.6.17 ;)

Diginix avatar May 09 '25 11:05 Diginix

Ok, but then I would expect >=7.6.7 :-) Thanks for reporting anyway.

mcm1957 avatar May 09 '25 11:05 mcm1957

@GermanBluefox

Sees to releate to componetn IMAGE here: https://github.com/ioBroker/ioBroker.admin/blob/d64077fb7249005a1253de90eb54d0d84f019679/packages/admin/admin/jsonConfig.json5#L201

According to documentation an OBJECT is required, but jsonCofnig specifies a string https://github.com/ioBroker/ioBroker.admin/blob/master/packages/jsonConfig/README.md#image

So either jsonConfig.json5 must be corrected OR schema and documentation need an update if a plain string should be ok too.

mcm1957 avatar May 09 '25 11:05 mcm1957

@Diginix please check if issue is fixed

Feuer-sturm avatar Aug 14 '25 10:08 Feuer-sturm

@Feuer-sturm I just checked it with Admin version 7.7.2 and the error still occurs:

admin.0 | 2025-09-12 12:27:36.237 | warn | admin has an invalid jsonConfig: [{"instancePath":"/items/loginTab/items/login-bg.png/accept","schemaPath":"#/patternProperties/%5E.%2B/allOf/10/then/properties/accept/type","keyword":"type","params":{"type":"object"},"message":"must be object"},{"instancePath":"/items/loginTab","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/9/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"","schemaPath":"#/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}]

pls reopen

pafade89 avatar Sep 12 '25 10:09 pafade89

Thank you v7.7.19 solve the issue 👍

pafade89 avatar Nov 02 '25 12:11 pafade89