I have a simple API, that accepts JSON payload, and among attributes of the 
payload I have one with name "security". 
A sample for the POST payload schema:
definitions:
  someSchema:
    description: My schema description
    type: object
    properties:
      propertyOne:
        type: string
      propertyTwo:
        type: string
      security:
        type: object
        properties:
          propertyOne:
            type: string


When the API is described by Swagger 2.0, it doesn't pass the validation, 
as it somehow interprets an attribute from my payload as an API's 
properties attribute.

What's wrong with having a payload attribute, named security?


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: sampleSwagger.yaml
Description: Binary data

Reply via email to