Skip to content

Commit

Permalink
Inline Ref on FromImport
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Dec 5, 2024
1 parent d4e95a4 commit 06c7e19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ export namespace TypeCompiler {
const members = globalThis.Object.getOwnPropertyNames(schema.$defs).reduce((result, key) => {
return [...result, schema.$defs[key as never] as TSchema]
}, [] as TSchema[])
const ref = Ref(schema.$ref)
yield* Visit(ref, [...references, ...members], value)
yield* Visit(Ref(schema.$ref), [...references, ...members], value)
}
function* FromInteger(schema: TInteger, references: TSchema[], value: string): IterableIterator<string> {
yield `Number.isInteger(${value})`
Expand Down

0 comments on commit 06c7e19

Please sign in to comment.