Copilot commented on code in PR #14634:
URL: https://github.com/apache/gravitino/pull/14634#discussion_r4468764589


##########
docs/open-api/jobs.yaml:
##########
@@ -293,6 +293,8 @@ paths:
               examples:
                 JobResponse:
                   $ref: "#/components/examples/JobResponse"
+        "400":
+          $ref: "./openapi.yaml#/components/responses/BadRequestErrorResponse"

Review Comment:
   The referenced `BadRequestErrorResponse` example advertises code `1003` and 
type `BadRequestException` (`openapi.yaml:419–422`), whereas this endpoint now 
returns code `1001` and type `IllegalArgumentException` for query conversion 
failures. This leaves the newly documented response inconsistent with the 
behavior this PR introduces. Use an endpoint-specific example with the actual 
illegal-arguments payload.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to