Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON body validation #21

Open
m-r-c opened this issue Apr 18, 2016 · 0 comments
Open

Add JSON body validation #21

m-r-c opened this issue Apr 18, 2016 · 0 comments
Labels
ala-ws-plugin Pertains to ala-ws-plugin subproject

Comments

@m-r-c
Copy link
Contributor

m-r-c commented Apr 18, 2016

Mandatory JSON body, results in a HTTP 400 with a descriptive message
Mandatory JSON body properties, results in a HTTP 400 with a descriptive message

Can Grails automatically map a JSON body to a Command Object with constraints? If not, can we make it do that? Alternatively, we might be able to extend the JSR-303 annotations from AtlasOfLivingAustralia/ala-ws-plugin#2 to include something like @JsonBody and @JsonParameter(path = 'a.b.c...')...

Needs investigation.

@sbearcsiro sbearcsiro transferred this issue from AtlasOfLivingAustralia/ala-ws-plugin Mar 10, 2023
@sbearcsiro sbearcsiro added the ala-ws-plugin Pertains to ala-ws-plugin subproject label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ala-ws-plugin Pertains to ala-ws-plugin subproject
Projects
None yet
Development

No branches or pull requests

2 participants