...

Text file src/github.com/go-openapi/validate/fixtures/go-swagger/bugs/774/swagger.yml

Documentation: github.com/go-openapi/validate/fixtures/go-swagger/bugs/774

     1---
     2swagger: '2.0'
     3info:
     4  version: 0.0.0
     5  title: Breaking API as described by christianklotz
     6paths:
     7  /stores:
     8    get:
     9      operationId: getFoo
    10      responses:
    11        200:
    12          schema:
    13            type: array
    14            items:
    15              $ref: '#/definitions/Foo'
    16definitions:
    17  Foo:
    18    type: object
    19    properties:
    20      hasOmitEmptyTrue:
    21        type: array
    22        x-omitempty: true
    23        items:
    24          type: string
    25          enum:
    26          - some
    27          - values
    28      hasOmitEmptyFalse:
    29        type: array
    30        x-omitempty: false
    31        items:
    32          type: string
    33          enum:
    34          - some
    35          - values
    36      noOmitEmpty:
    37        type: array
    38        items:
    39          type: string
    40          enum:
    41          - some
    42          - values

View as plain text