Skip to content

Commit

Permalink
fix(openapi): OpenAPI spec generation issue with null values
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Feb 23, 2025
1 parent fe39bf3 commit 081785e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/openapi/src/schema-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { type FileSchema, type JSONSchema, NON_LOGIC_KEYWORDS, type ObjectSchema

export class SchemaUtils {
isFileSchema(schema: JSONSchema.JSONSchema): schema is FileSchema {
return typeof schema === 'object' && schema.type === 'string' && typeof schema.contentMediaType === 'string'
return isObject(schema) && schema.type === 'string' && typeof schema.contentMediaType === 'string'
}

isObjectSchema(schema: JSONSchema.JSONSchema): schema is ObjectSchema {
return typeof schema === 'object' && schema.type === 'object'
return isObject(schema) && schema.type === 'object'
}

isAnySchema(schema: JSONSchema.JSONSchema): boolean {
Expand Down

0 comments on commit 081785e

Please sign in to comment.