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

Return errors like full service #16

Merged

Conversation

DanieliMi
Copy link
Contributor

@DanieliMi DanieliMi commented Jan 17, 2024

In the lite version only one error will be reported but this makes the lite version compatible with modules for the full service. The full service will always return an array of errors.

Fixes #15

In the lite version only one error will be reported but this makes the
lite version compatible with modules for the full service. The full
service will always return an array of errors.

Fixes FriendlyCaptcha#15
@amenk amenk merged commit 9229058 into FriendlyCaptcha:main Jan 17, 2024
@DanieliMi
Copy link
Contributor Author

FYI: This is actually a breaking change since it changes the return key from error to errors and the type from string to array<string>.

@DanieliMi DanieliMi deleted the return-errors-like-full-service branch January 17, 2024 09:56
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

Successfully merging this pull request may close these issues.

Return code 400 empty solution might by slightly different from the normal API
2 participants