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

Validation of POST request #12

Open
araeubig opened this issue Feb 8, 2025 · 0 comments
Open

Validation of POST request #12

araeubig opened this issue Feb 8, 2025 · 0 comments

Comments

@araeubig
Copy link

araeubig commented Feb 8, 2025

I get your repo working fine but want to let you know that the validation with "php-smart-validator" doesn't work very well. I tried to create a complete new set of rule, controller and so on with the needed 28 fields which come as well formatted JSON. Most of these values are clean numeric values. The validator only allows to you use strings - i added new rules BUT then it's not possible to mark a field as required. Therefore it would be a good way to go the "other way": First checking if the required key exists and then cecking for the right value.

I don't know if swagger-php and the integrated check would be a better solution but i want to let you inform you about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant