Skip to content

Validation of POST request #12

@araeubig

Description

@araeubig

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions