Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
Merge pull request #21 from openchatai/fix/return-parser-results
Browse files Browse the repository at this point in the history
fix: return the list of validations and recommendations of the swagge…
  • Loading branch information
gharbat authored Aug 31, 2023
2 parents 3bfc04f + ac4b7c9 commit ade3467
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dashboard/app/Http/Controllers/OnboardingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,16 @@ public function validator(Request $request)
}

if (request()->wantsJson()) {
$endpoints = $parser->getEndpoints();
return response()->json([
'parser' => $parser
'chatbot_id' => $bot->getId(),
'all_endpoints' => $endpoints,
'validations' => [
'endpoints_without_operation_id' => $parser->getEndpointsWithoutOperationId($endpoints),
'endpoints_without_description' => $parser->getEndpointsWithoutDescription($endpoints),
'endpoints_without_name' => $parser->getEndpointsWithoutName($endpoints),
'auth_type' => $parser->getAuthorizationType()
]
]);
}

Expand Down

0 comments on commit ade3467

Please sign in to comment.