Skip to content

Commit

Permalink
fix: dont unnecessarily set additional properties true
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Dec 5, 2024
1 parent 4ac9755 commit 2476215
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,16 @@ export abstract class AbstractOpenAPIV3ParserContext implements SchemaParserCont
for (const key of keys) {
if (typeof resolvedSchema !== "object" || resolvedSchema == null) {
return {
"x-fern-type": "unknown",
additionalProperties: true
"x-fern-type": "unknown"
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any as OpenAPIV3.SchemaObject;
}
resolvedSchema = resolvedSchema[key];
}
if (resolvedSchema == null) {
this.logger.warn(`Encountered undefined reference: ${schema.$ref}`);
return {
"x-fern-type": "unknown",
additionalProperties: true
"x-fern-type": "unknown"
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any as OpenAPIV3.SchemaObject;
}
Expand Down

0 comments on commit 2476215

Please sign in to comment.