canonical / identity-platform-admin-ui

Admin UI for the Canonical identity broker and identity provider solution
Other
5 stars 4 forks source link

Using go-playground/validate for payload validation #228

Closed shipperizer closed 2 months ago

shipperizer commented 4 months ago

we noticed that some of the endpoints are failing to do proper payload validation, we do have some annotations on structs but we failed to get a proper setup

we should pivot to use https://github.com/go-playground/validator and enforce required parameters on JSON payload, see example in https://github.com/go-playground/validator/blob/master/_examples%2Fsimple%2Fmain.go

this issue relates to #227

syncronize-issues-to-jira[bot] commented 4 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-761.

This message was autogenerated