github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/enhancements/2224/fixture-2224.yaml (about)

     1  swagger: "2.0"
     2  info:
     3    title: "external types with hints"
     4    version: "0.0.1"
     5  paths:
     6    "/":
     7      post:
     8        tags:
     9        - hotspot
    10        summary: Create a Hotspot
    11        operationId: "CreateHotspot"
    12        consumes:
    13        - application/json
    14        produces:
    15        - application/json
    16        parameters:
    17        - in: body
    18          name: Hotspot
    19          required: false
    20          schema:
    21            $ref: '#/definitions/Hotspot'
    22        responses:
    23          201:
    24            description: Hotspot created.
    25            schema:
    26              $ref: '#/definitions/Hotspot'
    27          400:
    28            description: Bad request.
    29            schema:
    30              $ref: '#/definitions/Error'
    31          422:
    32            description: Unprocessable entity
    33            schema:
    34              $ref: '#/definitions/Error'
    35          500:
    36            description: Unexpected error.
    37            schema:
    38              $ref: '#/definitions/Error'
    39    "/embedded":
    40      get:
    41        tags:
    42        - embedded
    43        responses:
    44          201:
    45            description: embedded type
    46            schema:
    47              $ref: '#/definitions/Embedded'
    48  
    49  definitions:
    50    Error:
    51      type: object
    52  
    53    Hotspot:
    54      x-go-type:
    55        type: Hotspot
    56        import:
    57          package: github.com/go-swagger/go-swagger/fixtures/enhancements/2224/external
    58        hints:
    59          kind: object
    60      x-nullable: true
    61  
    62    HotspotNoHint:
    63      type: object
    64      x-go-type:
    65        type: Hotspot
    66        import:
    67          package: github.com/go-swagger/go-swagger/fixtures/enhancements/2224/external
    68      x-nullable: true
    69  
    70    ExternalArray:
    71      x-go-type:
    72        type: HotArray
    73        import:
    74          package: github.com/go-swagger/go-swagger/fixtures/enhancements/2224/external
    75          hints:
    76            kind: array
    77      x-nullable: true
    78  
    79    ExternalArrayNoHint:
    80      type: array
    81      items:
    82        type: object
    83      x-go-type:
    84        type: HotArray
    85        import:
    86          package: github.com/go-swagger/go-swagger/fixtures/enhancements/2224/external
    87      x-nullable: true
    88  
    89    ExternalPrimitive:
    90      x-go-type:
    91        type: Time
    92        import:
    93          package: github.com/go-swagger/go-swagger/fixtures/enhancements/2224/external
    94          hints:
    95            kind: primitive
    96            novalidation: true
    97      x-nullable: true
    98  
    99    Embedded:
   100      x-go-type:
   101        type: Hotspot
   102        import:
   103          package: github.com/go-swagger/go-swagger/fixtures/enhancements/2224/external
   104        hints:
   105          kind: object
   106        embedded: true
   107      x-go-name: "externalWithEmbed"