-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix, ir: fall back to the generated name when creating schemas if the… (
- Loading branch information
1 parent
62fc4a2
commit 47e2404
Showing
25 changed files
with
457 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/cli/configuration/src/generators-yml/schemas/GeneratorsOpenAPIObjectSchema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { z } from "zod"; | ||
import { APIDefinitionSettingsSchema } from "./APIConfigurationSchema"; | ||
|
||
export const OPENAPI_DISABLE_EXAMPLES_KEY = "disable-examples"; | ||
|
||
export const GeneratorsOpenAPIObjectSchema = z.strictObject({ | ||
path: z.string(), | ||
origin: z.optional(z.string()), | ||
overrides: z.optional(z.string()), | ||
[OPENAPI_DISABLE_EXAMPLES_KEY]: z.optional(z.boolean()) | ||
[OPENAPI_DISABLE_EXAMPLES_KEY]: z.optional(z.boolean()), | ||
settings: APIDefinitionSettingsSchema | ||
}); | ||
|
||
export type GeneratorsOpenAPIObjectSchema = z.infer<typeof GeneratorsOpenAPIObjectSchema>; |
Oops, something went wrong.