Skip to content

Commit

Permalink
a ‘hacky’ workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
samberger committed Mar 19, 2024
1 parent e7b5c3c commit e2c467e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/generateSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { writeFileSync } from 'fs'
import { zodToJsonSchema } from 'zod-to-json-schema'
import { FunctionInputSchema } from './automateFunction.js'

const schema = zodToJsonSchema(FunctionInputSchema)
const schema = zodToJsonSchema(FunctionInputSchema, {target: "jsonSchema2019-09"})

schema.$schema = "https://json-schema.org/draft/2020-12/schema"; // a ‘hacky’ workaround


const args = process.argv.slice(2)

Expand Down

0 comments on commit e2c467e

Please sign in to comment.