mchades commented on code in PR #14520:
URL: https://github.com/apache/gravitino/pull/14520#discussion_r4455053209


##########
docs/open-api/policies.yaml:
##########
@@ -894,7 +894,10 @@ components:
           nullable: true
         policyType:
           type: string
-          description: The type of the policy
+          description: >-
+            The type of the policy. Known values are matched 
case-insensitively; the server

Review Comment:
   The description now promises case-insensitive input, but the request schemas 
still use lowercase-only enums (for example, 
`IcebergCompactionPolicyCreateRequest` and 
`UpdateIcebergCompactionPolicyContentRequest`) and exact-case discriminator 
mappings. `SYSTEM_ICEBERG_COMPACTION` with `{"maxPartitionNum":5}` succeeds 
over REST but fails validation against both top-level request schemas. Please 
align the request constraints/type selection with the accepted casing and add 
schema-validation coverage. Response enums can remain canonical lowercase.



-- 
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