Skip to content

Commit

Permalink
fix: fix codegen for array of enums
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbansal authored and fabien0102 committed Feb 8, 2020
1 parent 84e2c88 commit 74a342f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/scripts/tests/__snapshots__/import-open-api.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 12 additions & 0 deletions src/scripts/tests/petstore-expanded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 74a342f

Please sign in to comment.