FriendsOfCake / crud-json-api

Build advanced JSON API Servers with almost no code.
https://crud-json-api.readthedocs.io/
MIT License
56 stars 32 forks source link

Validation #115

Closed igorfelluga closed 4 years ago

igorfelluga commented 4 years ago

Hi my is a question not a issue. How can I do two validations? One for jsonapi calls and other for simple html form. My doubt is about date, for jsonapi I have ISO date in the form dd/mm/yyyy format. Thanks

dakota commented 4 years ago

Hi,

You can use the saveOptions config as described in the Crud documentation (https://crud.readthedocs.io/en/latest/actions/add.html#saveoptions)