raml-java-parser
raml-java-parser copied to clipboard
Empty body is not validated for a resource application/json using a type definition
types:
User:
type: object
properties:
firstname: string
lastname: string
age: number
/types-test:
post:
body:
application/json:
type: User
responses:
200: ~
curl -X POST -H "Content-type: application/json" -d '' localhost:8081/api/types-test -vvv
Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-87