Skip to content

Commit

Permalink
perf: remove unused comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rentu committed Sep 20, 2024
1 parent b2d83b1 commit 33bbd52
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/spec-parser/src/validators/copilotValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export class CopilotValidator extends Validator {
if (requestJsonBody) {
const requestBodySchema = requestJsonBody.schema as OpenAPIV3.SchemaObject;

// if there is no type property, it should be an object
if (!Utils.isObjectSchema(requestBodySchema)) {
result.reason.push(ErrorType.PostBodySchemaIsNotJson);
}
Expand Down

0 comments on commit 33bbd52

Please sign in to comment.