Skip to content

Commit

Permalink
remove undefined schema check
Browse files Browse the repository at this point in the history
  • Loading branch information
kainpets committed Jun 7, 2024
1 parent 00a8503 commit 9212d46
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/interact-for-open-api-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ export const interactForOpenApiObject = async (
// Clone args and args params so that we can mutate it
args = { ...args, params: { ...args.params } }

if (!args.schema || typeof args.schema.type === 'undefined') {
console.error(`Schema type is undefined for command: ${args.command.join("/")}`)
return
}

const schema: OpenApiSchema = flattenObjSchema(args.schema)

const { properties = {}, required = [] } = schema
Expand Down

0 comments on commit 9212d46

Please sign in to comment.