Closed Bug 1841553 Opened 2 years ago Closed 2 years ago

JsonSchemaValidator: Add "additionalProperties" to schema objects and rename "allowExtraProperties" to "allowAdditionalProperties"

Categories

(Toolkit :: General, task, P1)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox116 --- fixed
firefox117 --- fixed

People

(Reporter: adw, Assigned: adw)

References

Details

Attachments

(1 file)

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.

Attachment #9342141 - Attachment description: Bug 1841553 - JsonSchemaValidator: Add "additionalProperties" to schema objects and rename "allowExtraProperties" to "allowAdditionalProperties". → Bug 1841553 - JsonSchemaValidator: Support "additionalProperties" in schema objects and rename "allowExtraProperties" to "allowAdditionalProperties".
Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/768efc56d694 JsonSchemaValidator: Support "additionalProperties" in schema objects and rename "allowExtraProperties" to "allowAdditionalProperties". r=mossop
Flags: qe-verify-
Flags: in-testsuite+

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
Attachment #9342141 - Flags: approval-mozilla-beta?
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch

Comment on attachment 9342141 [details]
Bug 1841553 - JsonSchemaValidator: Support "additionalProperties" in schema objects and rename "allowExtraProperties" to "allowAdditionalProperties".

Approved for 116.0b2

Attachment #9342141 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: