From b8e7a281c5e501cce0e91b8daf64234c25d1fa24 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 18 Jul 2024 17:50:25 +0000 Subject: [PATCH] ci: Format code --- src/lib/blueprint.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/blueprint.ts b/src/lib/blueprint.ts index 0dbe88c..c1973ce 100644 --- a/src/lib/blueprint.ts +++ b/src/lib/blueprint.ts @@ -311,7 +311,7 @@ const createResponse = (responses: OpenapiOperation['responses']): Response => { responseType: 'void', description: 'description' in okResponse && - typeof okResponse.description === 'string' + typeof okResponse.description === 'string' ? okResponse.description : '', } @@ -324,7 +324,7 @@ const createResponse = (responses: OpenapiOperation['responses']): Response => { responseType: 'void', description: 'description' in okResponse && - typeof okResponse.description === 'string' + typeof okResponse.description === 'string' ? okResponse.description : '', } @@ -336,7 +336,7 @@ const createResponse = (responses: OpenapiOperation['responses']): Response => { responseType: 'void', description: 'description' in okResponse && - typeof okResponse.description === 'string' + typeof okResponse.description === 'string' ? okResponse.description : '', } @@ -359,7 +359,7 @@ const createResponse = (responses: OpenapiOperation['responses']): Response => { : 'unknown', description: 'description' in okResponse && - typeof okResponse.description === 'string' + typeof okResponse.description === 'string' ? okResponse.description : '', } @@ -391,7 +391,7 @@ const createResponse = (responses: OpenapiOperation['responses']): Response => { : 'unknown', description: 'description' in okResponse && - typeof okResponse.description === 'string' + typeof okResponse.description === 'string' ? okResponse.description : '', } @@ -408,9 +408,9 @@ const createResponse = (responses: OpenapiOperation['responses']): Response => { const PropertySchema = z.object({ name: z.string(), description: z.string().default(''), - isDeprecated: z.string().default("false"), + isDeprecated: z.string().default('false'), deprecationMessage: z.string().default(''), - isUndocumented: z.string().default("true"), + isUndocumented: z.string().default('true'), 'x-undocumented': z.string().default('true'), 'x-deprecated': z.string().default('false'), }) @@ -452,8 +452,8 @@ const createProperties = ( type: 'object', properties: 'properties' in prop && - typeof prop.properties === 'object' && - prop.properties !== null + typeof prop.properties === 'object' && + prop.properties !== null ? createProperties(prop.properties) : [], }