JsonSchemaValidator: Add "additionalProperties" to schema objects and rename "allowExtraProperties" to "allowAdditionalProperties"
Categories
(Toolkit :: General, task, P1)
Tracking
()
People
(Reporter: adw, Assigned: adw)
References
Details
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
diannaS
:
approval-mozilla-beta+
|
Details | Review |
The JSON schema standard supports an additionalProperties property inside individual schema objects. I need this for a feature I'm working on in bug 1841408. Our JsonSchemaValidator already has a global version of this called allowExtraProperties. I'd like to add support for additionalProperties and then rename allowExtraProperties to allowAdditionalProperties for consistency.
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Comment on attachment 9342141 [details]
Bug 1841553 - JsonSchemaValidator: Support "additionalProperties" in schema objects and rename "allowExtraProperties" to "allowAdditionalProperties".
Beta/Release Uplift Approval Request
- User impact if declined: This bug is necessary for the Pocket suggestions feature we intend to ship as an experiment in 116.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Just a small change to the JSON schema validator. No user-visible changes. Has tests.
- String changes made/needed:
- Is Android affected?: No
Comment 4•2 years ago
|
||
| bugherder | ||
Comment 5•2 years ago
|
||
Comment on attachment 9342141 [details]
Bug 1841553 - JsonSchemaValidator: Support "additionalProperties" in schema objects and rename "allowExtraProperties" to "allowAdditionalProperties".
Approved for 116.0b2
Comment 6•2 years ago
|
||
| bugherder uplift | ||
Description
•