Page MenuHomePhabricator

jsonschema-tools should have option to materialize schemas with default max/min validation for e.g. max long, max double, etc.
Closed, ResolvedPublic

Description

JSON will allow serialization of numbers outside of the range of their binary counterparts, e.g. max 64 bit long. jsonschema-tools should have a configuration option to automatically materialize schemas with number fields that don't already have maximum and/or minimum validation rules to e.g. max long and max double.

Event Timeline

Nuria added a project: Analytics-Kanban.
Nuria added a subscriber: Gilles.
This comment was removed by Nuria.
fdans moved this task from Incoming to Event Platform on the Analytics board.
Ottomata renamed this task from Validation rules on eventgate should take max int values into account in order to validate data for an schema to jsonschema-tools should have option to materialize schemas with default max/min validation for e.g. max long, max double, etc..Aug 3 2020, 4:30 PM
Ottomata updated the task description. (Show Details)

Change 624684 had a related patch set uploaded (by Ottomata; owner: Ottomata):
[schemas/event/primary@master] Temporarily disable numeric bounds enforcement

https://gerrit.wikimedia.org/r/624684

Change 624685 had a related patch set uploaded (by Ottomata; owner: Ottomata):
[schemas/event/secondary@master] Temporarily disable numeric bounds enforcement

https://gerrit.wikimedia.org/r/624685

Change 624684 merged by Ottomata:
[schemas/event/primary@master] Temporarily disable numeric bounds enforcement

https://gerrit.wikimedia.org/r/624684

Change 624685 merged by Ottomata:
[schemas/event/secondary@master] Temporarily disable numeric bounds enforcement

https://gerrit.wikimedia.org/r/624685

Making note so @fdans can work on adding bounds to schemas that need it when he is back

Change 624803 had a related patch set uploaded (by Ottomata; owner: Ottomata):
[schemas/event/primary@master] Temporarily disable numeric bounds enforcement

https://gerrit.wikimedia.org/r/624803

Change 624803 abandoned by Ottomata:
[schemas/event/primary@master] Temporarily disable numeric bounds enforcement

Reason:

https://gerrit.wikimedia.org/r/624803

Change 703249 had a related patch set uploaded (by Ottomata; author: Ottomata):

[schemas/event/primary@master] Rematerialize all schemas wiith enforced numeric bounds

https://gerrit.wikimedia.org/r/703249

Change 703249 merged by jenkins-bot:

[schemas/event/primary@master] Rematerialize all schemas wiith enforced numeric bounds

https://gerrit.wikimedia.org/r/703249