github.com/w3security/vervet/v5@v5.3.1-0.20230618081846-5bd9b5d799dc/testdata/conflict-components/_examples/2021-06-01/spec.yaml (about)

     1  openapi: 3.0.3
     2  x-w3security-api-stability: experimental
     3  info:
     4    title: Registry
     5    version: 3.0.0
     6  servers:
     7    - url: /api/v3
     8      description: W3Security 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          - {
    16              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/parameters/version.yaml#/Version",
    17            }
    18          - {
    19              $ref: "../../../resources/schemas/parameters/pagination.yaml#/Pagination",
    20            }
    21          - name: id
    22            description: The id of the hello-world example entity to be retrieved.
    23            in: path
    24            required: true
    25            schema:
    26              type: string
    27        responses:
    28          "400":
    29            {
    30              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/400.yaml#/400",
    31            }
    32          "401":
    33            {
    34              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/401.yaml#/401",
    35            }
    36          "404":
    37            {
    38              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/404.yaml#/404",
    39            }
    40          "500":
    41            {
    42              $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/responses/500.yaml#/500",
    43            }
    44          "200":
    45            description: "A hello world entity being requested is returned"
    46            headers:
    47              w3security-version-requested:
    48                {
    49                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionRequestedResponseHeader",
    50                }
    51              w3security-version-served:
    52                {
    53                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/VersionServedResponseHeader",
    54                }
    55              w3security-request-id:
    56                {
    57                  $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/headers/headers.yaml#/RequestIdResponseHeader",
    58                }
    59            content:
    60              application/vnd.api+json:
    61                schema:
    62                  type: object
    63                  properties:
    64                    jsonapi:
    65                      {
    66                        $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/common.yaml#/JsonApi",
    67                      }
    68                    links:
    69                      {
    70                        $ref: "https://raw.githubusercontent.com/w3security/sweater-comb/v1.2.2/components/common.yaml#/Links",
    71                      }
    72                    data: { $ref: "#/components/schemas/HelloWorld" }
    73                  required: ["jsonapi", "data", "links"]
    74                  additionalProperties: false
    75  
    76  components:
    77    schemas:
    78      HelloWorld:
    79        type: object
    80        properties:
    81          type:
    82            type: string
    83          id:
    84            type: string
    85            format: uuid
    86          attributes:
    87            type: object
    88            properties:
    89              message:
    90                type: string
    91              requestSubject:
    92                type: object
    93                properties:
    94                  publicId:
    95                    type: string
    96                    format: uuid
    97                  type:
    98                    type: string
    99                  clientId:
   100                    type: string
   101                    format: uuid
   102                required: ["publicId", "type"]
   103                additionalProperties: false
   104            required: ["message", "requestSubject"]
   105            additionalProperties: false
   106        required: ["type", "id", "attributes"]
   107        additionalProperties: false