github.com/snyk/vervet/v5@v5.11.1-0.20240202085829-ad4dd7fb6101/testdata/duplicate-specs/2022-08-31/spec.yaml (about)

     1  openapi: 3.0.3
     2  x-snyk-api-stability: beta
     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:
    11      post:
    12        description: Create a single result from the hello-world example - from spec.yaml
    13        operationId: helloWorldCreate
    14        requestBody:
    15          content:
    16            application/vnd.api+json:
    17              schema:
    18                type: object
    19                properties:
    20                  attributes:
    21                    type: object
    22                    properties:
    23                      message:
    24                        type: string
    25                      betaField:
    26                        type: string
    27                    additionalProperties: false
    28                    required: ["message", "betaField"]
    29                additionalProperties: false
    30                required: ["attributes"]
    31        responses:
    32          "201":
    33            description: "A hello world entity being requested is returned"
    34            content:
    35              application/vnd.api+json:
    36                schema:
    37                  type: object
    38                  required: ["jsonapi", "data", "links"]
    39                  additionalProperties: false
    40  
    41    /examples/hello-world/{id1}:
    42      get:
    43        description: Get a single result from the hello-world example
    44        operationId: helloWorldGetOne
    45        parameters:
    46          - name: id1
    47            description: The id of the hello-world example entity to be retrieved.
    48            in: path
    49            required: true
    50            schema:
    51              type: string
    52        responses:
    53          "200":
    54            description: "A hello world entity being requested is returned"
    55            content:
    56              application/vnd.api+json:
    57                schema:
    58                  type: object
    59                  required: ["jsonapi", "data", "links"]
    60                  additionalProperties: false
    61  
    62  components:
    63    schemas:
    64      HelloWorld:
    65        type: object
    66        properties:
    67          type:
    68            type: string
    69          id:
    70            type: string
    71            format: uuid
    72          attributes:
    73            type: object
    74            properties:
    75              message:
    76                type: string
    77              requestSubject:
    78                type: object
    79                properties:
    80                  publicId:
    81                    type: string
    82                    format: uuid
    83                  type:
    84                    type: string
    85                  clientId:
    86                    type: string
    87                    format: uuid
    88                required: ["publicId", "type"]
    89                additionalProperties: false
    90            required: ["message", "requestSubject"]
    91            additionalProperties: false
    92        required: ["type", "id", "attributes"]
    93        additionalProperties: false