This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove input schemas check from jsonBodyHandler
This behaviour was ported from the old version of osprey-method-handler. The check limited body schema types which were validated in jsonBodyHandler to Scalar, Node, Array only. The issue was discovered when trying to validate a body of type Union. The validation just did not happen because the body schema was ignored as it didn't pass the check. Now the check is completely removed as it doesn't seem to make sense. As jsonBodyHandler is only called for application/json requests, all the request bodies defined in RAML for application/json should work well with validation.
- Loading branch information
Showing
2 changed files
with
61 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters