Skip to content

Commit

Permalink
fix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrpo committed Jan 9, 2025
1 parent b7c13b2 commit 401bf7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function parseTypeSpecificFields(raw: JSONSchema7, type: Type): TypeSpecificFiel
Object.keys(schema.properties).length > 0 &&
schema.type === undefined
) {
schema.type = ['object'];
schema.type = ['array', 'object'];
}
fields.items = parseTypeSpecificFields(schema, getType(schema));
} else if (schemas.length > 1) {
Expand Down

0 comments on commit 401bf7f

Please sign in to comment.