We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e5350f commit 6b27d3dCopy full SHA for 6b27d3d
codegen/parser/definition.ts
@@ -59,6 +59,10 @@ const EnumSchema = BaseDefinitionSchema.extend({
59
const BaseArraySchema = BaseDefinitionSchema.extend({
60
type: z.literal("array"),
61
properties: z.any().optional(),
62
+ "x-portone-enum": z.record(z.strictObject({
63
+ title: z.string().optional(),
64
+ description: z.string().optional(),
65
+ })).optional().describe("when item is enum"),
66
}).strict()
67
68
type ArraySchema = z.infer<typeof BaseArraySchema> & {
0 commit comments