github.com/snyk/vervet/v5@v5.11.1-0.20240202085829-ad4dd7fb6101/testdata/conflict-components/_examples/2021-06-01/spec.yaml (about)

     1  openapi: 3.0.3
     2  x-snyk-api-stability: experimental
     3  info:
     4    title: Registry
     5    version: 3.0.0
     6  servers:
     7    - url: /api/v3
     8      description: Snyk Registry
     9  paths:
    10    /examples/hello-world/{id}:
    11      get:
    12        description: Get a single result from the hello-world example
    13        operationId: helloWorldGetOne
    14        parameters:
    15          - { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/parameters/version.yaml#/Version' }
    16          - { $ref: '../../../resources/schemas/parameters/pagination.yaml#/Pagination' }
    17          - name: id
    18            description: The id of the hello-world example entity to be retrieved.
    19            in: path
    20            required: true
    21            schema:
    22              type: string
    23          - $ref: '#/components/parameters/Conflict'
    24        responses:
    25          '400': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/400.yaml#/400' }
    26          '401': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/401.yaml#/401' }
    27          '404': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/404.yaml#/404' }
    28          '500': { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/responses/500.yaml#/500' }
    29          '200':
    30            description: 'A hello world entity being requested is returned'
    31            headers:
    32              snyk-version-requested: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionRequestedResponseHeader' }
    33              snyk-version-served: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionServedResponseHeader' }
    34              snyk-request-id: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/headers/headers.yaml#/RequestIdResponseHeader' }
    35            content:
    36              application/vnd.api+json:
    37                schema:
    38                  type: object
    39                  properties:
    40                    jsonapi: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/common.yaml#/JsonApi' }
    41                    links: { $ref: 'https://raw.githubusercontent.com/snyk/sweater-comb/v1.2.2/components/common.yaml#/Links' }
    42                    data: { $ref: '#/components/schemas/HelloWorld'}
    43                  required: ['jsonapi', 'data', 'links']
    44                  additionalProperties: false
    45  
    46  components:
    47    parameters:
    48      Conflict:
    49        name: conflict
    50        in: query
    51        required: true
    52        description: Initial conflict description
    53        schema:
    54          type: string
    55    schemas:
    56      HelloWorld:
    57        type: object
    58        properties:
    59          type:
    60            type: string
    61          id:
    62            type: string
    63            format: uuid
    64          attributes:
    65            type: object
    66            properties:
    67              message:
    68                type: string
    69              requestSubject:
    70                type: object
    71                properties:
    72                  publicId:
    73                    type: string
    74                    format: uuid
    75                  type:
    76                    type: string
    77                  clientId:
    78                    type: string
    79                    format: uuid
    80                required: ['publicId', 'type' ]
    81                additionalProperties: false
    82            required: ['message', 'requestSubject']
    83            additionalProperties: false
    84        required: ['type', 'id', 'attributes']
    85        additionalProperties: false