Fokko commented on code in PR #11955:
URL: https://github.com/apache/iceberg/pull/11955#discussion_r1913029561


##########
open-api/rest-catalog-open-api.py:
##########
@@ -132,11 +132,15 @@ class ExpressionType(BaseModel):
 
 
 class TrueExpression(BaseModel):
-    type: ExpressionType
+    type: ExpressionType = Field(
+        default_factory=lambda: ExpressionType.parse_obj('true'), const=True
+    )

Review Comment:
   This still looks a bit odd, but I think we can refactor this by inlining the 
`ExpressionType`, but I didn't want to do that in this PR. I think this is 
better than before.



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to