raml-java-parser icon indicating copy to clipboard operation
raml-java-parser copied to clipboard

Empty body is not validated for a resource application/json using a type definition

Open eleonoraortega opened this issue 8 years ago • 0 comments

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

eleonoraortega avatar Jun 02 '17 20:06 eleonoraortega