InseeFrLab / InseeFrLab/onyxia

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

Open
#1,015 0 comments 1 reaction 1 assignee Claimed by @garronej View on GitHub
Dominant language
TypeScript
Stars
872
Forks
109
Avg merge
6d 3h
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.