openapi: 3.0.3 info: title: Enum Test API version: 1.0.0 paths: {} components: schemas: Status: type: string enum: - pending - active - completed - cancelled description: Task status Priority: type: string enum: - low - normal - high - urgent Task: type: object required: - title - status properties: id: type: integer title: type: string status: $ref: '#/components/schemas/Status' priority: $ref: '#/components/schemas/Priority'