openapi: 3.0.0
info:
  title: Response Property Deprecation AllOf Test
  version: 1.0.0
paths:
  /test:
    get:
      summary: Test endpoint
      operationId: getTest
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/TestResponse'
components:
  schemas:
    BaseSchema:
      type: object
      properties:
        baseField:
          type: string
          description: Base field
    TestResponse:
      allOf:
        - $ref: '#/components/schemas/BaseSchema'
        - type: object
          properties:
            id:
              type: string
            legacyField:
              type: string
              description: Legacy field that will be deprecated
