diff --git a/src/scripts/tests/__snapshots__/import-open-api.test.ts.snap b/src/scripts/tests/__snapshots__/import-open-api.test.ts.snap index e58c1974..4f5d7af4 100644 --- a/src/scripts/tests/__snapshots__/import-open-api.test.ts.snap +++ b/src/scripts/tests/__snapshots__/import-open-api.test.ts.snap @@ -52,6 +52,13 @@ export interface Error { message: string; } +/** + * Request description + */ +export interface Request { + action?: (\\"create\\" | \\"read\\" | \\"update\\" | \\"delete\\")[]; +} + export type UpdatePetRequestRequestBody = NewPet; export interface FindPetsQueryParams { diff --git a/src/scripts/tests/petstore-expanded.yaml b/src/scripts/tests/petstore-expanded.yaml index cd3dd1ca..b83b1ee2 100644 --- a/src/scripts/tests/petstore-expanded.yaml +++ b/src/scripts/tests/petstore-expanded.yaml @@ -232,3 +232,15 @@ components: format: int32 message: type: string + Request: + description: Request description + properties: + action: + type: array + items: + type: string + enum: + - create + - read + - update + - delete