Skip to content

Fix validation for invalid json or yaml#14

Merged
JulianFun123 merged 2 commits into
devfrom
fix/validationForInvalidJsonOrYaml
Nov 29, 2021
Merged

Fix validation for invalid json or yaml#14
JulianFun123 merged 2 commits into
devfrom
fix/validationForInvalidJsonOrYaml

Conversation

@JanHolger

Copy link
Copy Markdown
Member

This sets the request to an empty AbstractArray or AbstractObject if parsing the request failed. This way body doesn't return null anymore and the validation is done even if an invalid or no body is sent.

Fixes #12

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.

Throw validation error if request is invalid json/yaml

3 participants