onyxia
onyxia copied to clipboard
Launcher : Displaying all values in Text Editor triggers schema validation error
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:
- Inconsistency between modes (as shown in the bug screenshot).
- 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.
- It contradicts the default behavior defined in the JSON Schema specification, which is unexpected and confusing.