I want to design an API using OpenAPI v2 having returning an ID in response of a POST request. This is what I tried:
responses:
201:
description: item created
content:
application/json:
schema:
type: integer
example: 234
400:
description: invalid input, object invalid
409:
description: an existing item already exists
I am using Swagger HUB and it raises the following error for response 201:
should NOT have additional properties additionalProperty: content