openapi: 3.0.3
info:
  title: test-local-defined-enum-as-header-value
  version: 0.0.1
paths:
  /contexts/{id}:
    get:
      description: Gets the Context resource with the id of :id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: lang
        in: query
        description: Allows a user to explicitly request content in a preferred language
        required: false
        schema:
          $ref: '#/components/schemas/OrgBmlTestLocalDefinedEnumAsHeaderValueV0EnumsLocale'
        example: en-US
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgBmlTestLocalDefinedEnumAsHeaderValueV0ModelsContext'
components:
  schemas:
    OrgBmlTestLocalDefinedEnumAsHeaderValueV0ModelsContext:
      description: The configuration for searching one or more
      type: object
      required:
      - id
      properties:
        id:
          description: This resources id.
          type: string
          format: uuid
    OrgBmlTestLocalDefinedEnumAsHeaderValueV0EnumsLocale:
      description: An enumeration of allowed locales
      type: string
      enum:
      - en-US
      - en-GB
