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

[BE][HOTFIX]: Fix may-nullable validation params #235

Merged
merged 3 commits into from
Sep 21, 2024
Merged

Conversation

Nicklas373
Copy link
Owner

Description

In last update, i was update some validation logic to 'required' from 'nullable' in split and watermark controllers. But some of that value was never served from the frontend with default value when empty. And it make validation logic hit and return error validation.

Solution

Update core API to properly declare and handle may-nullable variable, instead only declare as required

Commit

Handling for previous pull request

#232

- Make sure all required may-nullable variable was served from the request to prevent missing variable
- Properly check validation for free text params with only allowed charactes is string 'all',
  number and hyphens symbol.

Signed-off-by: Dicky Herlambang (花) <herlambangdicky5@gmail.com>
Signed-off-by: Dicky Herlambang (花) <herlambangdicky5@gmail.com>
Signed-off-by: Dicky Herlambang (花) <herlambangdicky5@gmail.com>
@Nicklas373 Nicklas373 added bug Something isn't working php Pull requests that update Php code labels Sep 21, 2024
@Nicklas373 Nicklas373 self-assigned this Sep 21, 2024
@Nicklas373 Nicklas373 merged commit cfa987e into be/master Sep 21, 2024
2 checks passed
@Nicklas373 Nicklas373 deleted the dev/be/master branch September 21, 2024 04:45
@Nicklas373 Nicklas373 restored the dev/be/master branch September 21, 2024 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant