github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1487/fixture-nested-maps.yaml (about)

     1  swagger: '2.0'
     2  
     3  info:
     4    version: "1.0.0"
     5    title: Nested maps
     6    description: |
     7      Testes focused on nested maps (i.e.nested AdditionalProperties)
     8  
     9  produces:
    10    - application/json
    11  
    12  consumes:
    13    - application/json
    14  
    15  paths:
    16    /models:
    17      get:
    18        operationId: modelOp
    19        summary: many model variations
    20        description: Used to see if a codegen can render all the possible parameter variations for a header param
    21        tags:
    22          - testcgen
    23        responses:
    24          default:
    25            description: Generic Out
    26  definitions:
    27    NamedNestedMapComplex:
    28      type: object
    29      additionalProperties:
    30        type: object
    31        additionalProperties:
    32          type: object
    33          additionalProperties:
    34            type: object
    35            properties:
    36              name:
    37                type: string
    38                minLength: 10
    39                maxLength: 50
    40                pattern: "\\w+"
    41              age:
    42                type: integer
    43                format: int32
    44                multipleOf: 1
    45                minimum: 1
    46                maximum: 200
    47                exclusiveMaximum: true
    48                exclusiveMinimum: true
    49    NamedNestedMapWithSlice:
    50      type: object
    51      additionalProperties:
    52        type: object
    53        additionalProperties:
    54          type: object
    55          additionalProperties:
    56            type: array
    57            maxItems: 100
    58            items:
    59              type: string
    60              minLength: 10
    61    NestedMapValidations:
    62      type: object
    63      properties:
    64        meta:
    65          type: object
    66          additionalProperties:
    67            type: object
    68            additionalProperties:
    69              type: object
    70              additionalProperties:
    71                type: integer
    72                format: int64
    73                minimum: 3
    74                maximum: 6
    75                multipleOf: 1
    76    NestedMapComplexValidations:
    77      type: object
    78      properties:
    79        meta:
    80          type: object
    81          additionalProperties:
    82            type: object
    83            additionalProperties:
    84              type: object
    85              additionalProperties:
    86                type: object
    87                properties:
    88                  name:
    89                    type: string
    90                    minLength: 10
    91                    maxLength: 50
    92                    pattern: "\\w+"
    93                  age:
    94                    type: integer
    95                    format: int32
    96                    multipleOf: 1
    97                    minimum: 1
    98                    maximum: 200
    99                    exclusiveMaximum: true
   100                    exclusiveMinimum: true
   101    NestedMapNoValidations:
   102      type: object
   103      additionalProperties:
   104        type: object
   105        additionalProperties:
   106          type: object
   107          additionalProperties:
   108            type: object
   109            properties:
   110              name:
   111                type: string
   112              age:
   113                type: integer 
   114    NestedMapSliceOfInterface:
   115      type: object
   116      additionalProperties:
   117        type: object
   118        additionalProperties:
   119          type: object
   120          additionalProperties:
   121            type: array
   122            items:
   123              $ref: '#/definitions/aliasInterface'
   124    NestedMapMaxSliceOfInterface:
   125      type: object
   126      additionalProperties:
   127        type: object
   128        additionalProperties:
   129          type: object
   130          additionalProperties:
   131            type: array
   132            maxItems: 10
   133            items:
   134              $ref: '#/definitions/aliasInterface'
   135    aliasInterface:
   136      type: object
   137      additionalProperties: true
   138    testNestedInterface:
   139      type: object
   140      properties:
   141        meta:
   142          type: object
   143          additionalProperties:
   144            type: object
   145            additionalProperties:
   146              type: object
   147              additionalProperties:
   148                type: object
   149                additionalProperties: true
   150    testNestedAliasedInterface:
   151      type: object
   152      properties:
   153        meta:
   154          type: object
   155          additionalProperties:
   156            type: object
   157            additionalProperties:
   158              type: object
   159              additionalProperties:
   160                $ref: '#/definitions/aliasInterface'