jsonapi_parameters
jsonapi_parameters copied to clipboard
[WIP] Schema validator
Proposed change to not use ActiveModel::Validations.
TODO:
- Test output of those validation errors
- Meta and errors should be optional (currently validator returns that as schema errors)
I already removed my previous comment; I didn't realize it was actually a request to merge into target PR.
About meta and other optional keywords, if I remember correctly I've done that as manual change in the schema (basically making it less strict):
https://github.com/visualitypl/jsonapi_parameters/pull/45/files#diff-0b898c8dfb1316b8cc5b9fa193dd5bcea2d856082ea8777060f2b44e5b72225eR78
Try that, maybe that will resolve the issue.