...

Text file src/github.com/go-openapi/analysis/fixtures/inline_schemas.yml

Documentation: github.com/go-openapi/analysis/fixtures

     1---
     2swagger: "2.0"
     3info:
     4  version: "0.1.0"
     5  title: reference analysis
     6
     7parameters:
     8  someParam:
     9    name: someParam
    10    in: body
    11    schema:
    12      type: object
    13      properties:
    14        createdAt:
    15          type: string
    16          format: date-time
    17responses:
    18  someResponse:
    19    schema:
    20      type: object
    21      properties:
    22        createdAt:
    23          type: string
    24          format: date-time
    25paths:
    26  "/some/where/{id}":
    27    parameters:
    28      - name: id
    29        in: path
    30        type: integer
    31        format: int32
    32
    33      - name: bodyId
    34        in: body
    35        schema:
    36          type: object
    37          properties:
    38            createdAt:
    39              type: string
    40              format: date-time
    41    post:
    42      responses:
    43        default:
    44          description: all good
    45    get:
    46      parameters:
    47      - name: limit
    48        in: query
    49        type: integer
    50        format: int32
    51        required: false
    52      - name: other
    53        in: query
    54        type: array
    55        items:
    56          type: object
    57          properties:
    58            id:
    59              type: integer
    60              format: int64
    61      - name: body
    62        in: body
    63        schema:
    64          type: object
    65          properties:
    66            createdAt:
    67              type: string
    68              format: date-time
    69      responses:
    70        default:
    71          schema:
    72            type: object
    73            properties:
    74              createdAt:
    75                type: string
    76                format: date-time
    77        404:
    78          schema:
    79            $ref: "errors.yml#/error"
    80        200:
    81          schema:
    82            type: object
    83            properties:
    84              id:
    85                type: integer
    86                format: int64
    87              value:
    88                type: string
    89  "/other/place":
    90    $ref: "external/pathItem.yml"
    91
    92definitions:
    93  namedAgain:
    94    type: object
    95    properties:
    96      id:
    97        type: integer
    98        format: int64
    99
   100  datedTag:
   101    allOf:
   102      - type: string
   103        format: date
   104      - type: object
   105    properties:
   106      id:
   107        type: integer
   108        format: int64
   109      value:
   110        type: string
   111  
   112  records:
   113    type: array
   114    items:
   115      - type: object
   116        properties:
   117          createdAt:
   118            type: string
   119            format: date-time
   120
   121  datedRecords:
   122    type: array
   123    items:
   124      - type: string
   125        format: date-time
   126      - type: object
   127        properties:
   128          createdAt:
   129            type: string
   130            format: date-time
   131
   132  datedTaggedRecords:
   133    type: array
   134    items:
   135      - type: string
   136        format: date-time
   137      - type: object
   138        properties:
   139          createdAt:
   140            type: string
   141            format: date-time
   142    additionalItems:
   143      type: object
   144      properties:
   145        id:
   146          type: integer
   147          format: int64
   148        value:
   149          type: string
   150    
   151  otherRecords:
   152    type: array
   153    items:
   154      type: object
   155      properties:
   156        createdAt:
   157          type: string
   158          format: date-time
   159  
   160  tags:
   161    type: object
   162    additionalProperties:
   163      type: object
   164      properties:
   165        id:
   166          type: integer
   167          format: int64
   168        value:
   169          type: string
   170
   171  namedThing:
   172    type: object
   173    properties:
   174      name:
   175        type: object
   176        properties:
   177          id:
   178            type: integer
   179            format: int64
   180
   181  # depth first should have this at the bottom, it's just a very long name
   182  pneumonoultramicroscopicsilicovolcanoconiosisAntidisestablishmentarianism:
   183    type: object
   184    properties:
   185      floccinaucinihilipilificationCreatedAt:
   186        type: integer
   187        format: int64

View as plain text