team-genny / genny

0 stars 1 forks source link

A request body validation for POST to /api/schemas #30

Closed fergcb closed 4 months ago

fergcb commented 4 months ago

When sending a POST request to /api/schemas, it is possible to send a schema without a slug, or with parameters missing from fields. There should be some validation to return a useful error message if non-optional fields are missing or violating sensible size constraints.