lucacorti / jsonapi_plug

JSON:API library for Plug and Phoenix applications
https://hexdocs.pm/jsonapi_plug
MIT License
11 stars 3 forks source link

Explore validation with JSON Schema #65

Open lucacorti opened 6 months ago

lucacorti commented 6 months ago

This is more of a POC to see if we can easily add validation by extending resource attributes and leveraging JSON Schema to do the heavy lifting. What do you think?

treere commented 2 months ago

It looks good. If I'm reading it correctly with this validation step this library can validate the params itself without any other library doing the job.

lucacorti commented 2 months ago

Yes, that's the idea. This is just a POC: