Parser allows to send a valid json when resource is set for xml content type
types:
User:
type: object
properties:
firstname: string
lastname: string
age: number
/xmlschema:
post:
body:
application/xml:
type: User
responses:
200:
body:
application/xml:
type: Files
request:
curl -X POST -H "Content-type: application/xml" -d '{"response": { "firstname": "eleo", "lastname": "ortega""age": 30}}' localhost:8081/api/xmlschema -vvv
Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-88
Why is this a raml-java-parser issue and not an apikit one?
On Fri, Jun 2, 2017 at 5:15 PM, Eleonora [email protected] wrote:
types: User: type: object properties: firstname: string lastname: string age: number
/xmlschema: post: body: application/xml: type: User responses: 200: body: application/xml: type: Files
request:
curl -X POST -H "Content-type: application/xml" -d '{"response": { "firstname": "eleo", "lastname": "ortega""age": 30}}' localhost:8081/api/xmlschema -vvv
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/raml-org/raml-java-parser/issues/380, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGMeO3rcXDOtQr-TCDBZgt7CkzsstG8ks5sAG1YgaJpZM4Nuu8w .