amiv-eth / amivapi

The REST API behind most of AMIV's web services.
http://api.amiv.ethz.ch/docs
GNU Affero General Public License v3.0
31 stars 6 forks source link

JSON schema vs Cerberus schema #158

Closed cburchert closed 7 years ago

cburchert commented 7 years ago

Currently we use cerberus schemas for event's additional_fields. There was a discussion, whether we should switch to JSON schemas, as those are more widely known outside the python community.

Thoughts?

hermannsblum commented 7 years ago

As there is a jsonschema validation for python, but no cerberus schema validation for js, that would make client-side validation easier

NotSpecial commented 7 years ago

Aren't there some javascript libraries around to create jsonschema? And to create forms form jsonschema?

In my opinion something like this would be the main argument, because if something like this exists we would make life for the frontend team much easier.

(Will investigate)

NotSpecial commented 7 years ago

There is!

I will assign myself, because I have used this in the past (for group methods, which is now handles differently though) and so I think I have an idea how to implement it easily.