Generate full-depth JSON Schemas for FML features
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- json, python, yaml
- Domain
- api, backend, developer-experience
Research direction
Start by reading the code that generates and stores feature schemas from experimenter.yaml and the per-channel .fml.yaml files, then trace the branch editor autocomplete, schema display, and features page diffs that consume them. The issue names no specific code files or tests, so first locate those entry points and their existing schema tests. Done means generated schemas represent nested objects, enums, maps, lists, and optional fields, with desktop remaining out of scope.
Written by the indexing model from the issue text.
Description
Experimenter generates a JSON Schema for each mobile/web (FML) feature from experimenter.yaml, which nimbus-fml generate-experimenter produces. That projection flattens every nested FML type (objects, maps, lists) to json, drops Option nullability, and only keeps enum variants on top-level variables. The schema we store, display, and use for editor autocomplete therefore only describes top-level variables. For a feature like messaging, where most of the structure lives in nested objects (MessageData, StyleData, etc.), the schema shows almost nothing useful.
Deep validation of mobile feature values already goes through FmlClient against the full FML, so this is about the schema we generate and expose, not about validation correctness.
Proposal: generate the JSON Schema for FML features from the full FML (the per-channel .fml.yaml files we already fetch) so it covers the whole spec: nested objects, enums, maps, lists, and optional fields. Desktop is out of scope.
This touches several places that consume the stored schema today, including the branch editor's autocomplete (which only handles flat schemas), the schema display in the branch editor, and the feature schema diffs on the features page.
Related: #17675
┆Issue is synchronized with this Jira Task
- Dominant language
- Python
- Stars
- 152
- Forks
- 231
- Avg merge
- 23h 54m
- Merged PRs (30d)
- 201
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/experimenter
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
mozilla/experimenter#18288 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla/experimenter#18281 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
mozilla/experimenter#18132 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
mozilla/experimenter#18079 ·
Maintainers usually reply within 1 day
-
Targeting version check uses whichever version was cached first: `TargetingContextFields.for_application` ignores versionMay be free again @user-Param claimed this 21 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla/experimenter#17974 · 1 comment ·
Maintainers usually reply within 1 day
All issues in mozilla/experimenter
Similar issues
-
area: ci enhancement perceived difficulty: 1
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
vllm-project/vllm-sail#398 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DiamondLightSource/sm-bluesky#476 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100