Closed
Bug 1439418
Opened 8 years ago
Closed 8 years ago
Policy engine - Properly support optional and required fields in the schema
Categories
(Firefox :: Enterprise Policies, enhancement)
Tracking
()
RESOLVED
FIXED
Firefox 60
| Tracking | Status | |
|---|---|---|
| firefox60 | --- | fixed |
People
(Reporter: Felipe, Assigned: Felipe)
References
Details
Attachments
(1 file)
The situation for properties inside an object was a bit messy: all properties were required, except for the ugly exception added in bug 1433271 for arrays.
The correct way to do is to make all fields optional, and only require the ones marked as required, following what json-schema.org does.
I attempted to do this in bug 1433271 but I think I started in the wrong direction there, and it seemed much more complicated than it actually is. I now removed the workaround added there, and the test added continues to pass.
| Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8952213 [details]
Bug 1439418 - Policy engine - Properly support optional and required fields in the schema.
https://reviewboard.mozilla.org/r/221468/#review227670
Attachment #8952213 -
Flags: review?(dtownsend) → review+
Pushed by felipc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/23c051322140
Policy engine - Properly support optional and required fields in the schema. r=mossop
Comment 4•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
You need to log in
before you can comment on or make changes to this bug.
Description
•