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

feat: OptionsFormValidationError web error #127

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

janbritz
Copy link
Contributor

@janbritz janbritz commented Jan 7, 2025

Closes #122.

Wird ein OptionsFormValidationError während eines Requests geraised, so wird jetzt ein Fehler zurückgegeben, welcher dem RequestError ähnelt.

Ein Beispiel mit dem "minimal example"-Paket:

Request:

{
  "form_data": {
    "my_hidden": ""
  }
}

Response:

{
  "error_code": "INVALID_OPTIONS_FORM_DATA",
  "temporary": false,
  "reason": null,
  "errors": {
    "my_hidden": "Input should be 'foo'",
    "my_repetition": "Field required"
  }
}

@janbritz janbritz requested review from MartinGauk and MHajoha January 7, 2025 16:23
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.

OptionsFormValidationError im question Endpoint implementieren
1 participant