onyxia icon indicating copy to clipboard operation
onyxia copied to clipboard

Launcher : Displaying all values in Text Editor triggers schema validation error

Open ddecrulle opened this issue 8 months ago • 0 comments

When using the launcher in dev mode inside the Text Editor, displaying all default values triggers a schema validation error.

https://github.com/user-attachments/assets/3e80d780-20a1-41fe-9347-c907fbb9cfdf

Cause

This happens because the inferred schema changes the default value of additionalProperties from its JSON Schema default (true) to false.

Why this is a problem

  • This behavior seems to have been introduced intentionally to align features between the Form mode and the Text Editor.
  • However, this approach causes several issues:
    1. Inconsistency between modes (as shown in the bug screenshot).
    2. In some cases, building a complete UX in Form mode is difficult or impossible. This restriction in the Text Editor reduces available features and penalizes end users.
    3. It contradicts the default behavior defined in the JSON Schema specification, which is unexpected and confusing.

ddecrulle avatar Aug 14 '25 13:08 ddecrulle