This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new 68d491e6a3 Build: Bump datamodel-code-generator from 0.24.2 to 0.25.0 
(#9189)
68d491e6a3 is described below

commit 68d491e6a344a0e081cc784db28dec60670d4d36
Author: Fokko Driesprong <[email protected]>
AuthorDate: Tue Dec 5 18:27:27 2023 +0100

    Build: Bump datamodel-code-generator from 0.24.2 to 0.25.0 (#9189)
    
    Bumps 
[datamodel-code-generator](https://github.com/koxudaxi/datamodel-code-generator)
 from 0.24.2 to 0.25.0.
    - [Release 
notes](https://github.com/koxudaxi/datamodel-code-generator/releases)
    - 
[Commits](https://github.com/koxudaxi/datamodel-code-generator/compare/0.24.2...0.25.0)
    
    ---
    updated-dependencies:
    - dependency-name: datamodel-code-generator
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
---
 open-api/requirements.txt         |  2 +-
 open-api/rest-catalog-open-api.py | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/open-api/requirements.txt b/open-api/requirements.txt
index a9be79a486..c20e40f4ad 100644
--- a/open-api/requirements.txt
+++ b/open-api/requirements.txt
@@ -16,4 +16,4 @@
 # under the License.
 
 openapi-spec-validator==0.7.1
-datamodel-code-generator==0.24.2
+datamodel-code-generator==0.25.0
diff --git a/open-api/rest-catalog-open-api.py 
b/open-api/rest-catalog-open-api.py
index 5da91a16f9..5a17b9d438 100644
--- a/open-api/rest-catalog-open-api.py
+++ b/open-api/rest-catalog-open-api.py
@@ -614,7 +614,7 @@ class TransformTerm(BaseModel):
     term: Reference
 
 
-class ReportMetricsRequest1(CommitReport):
+class ReportMetricsRequest2(CommitReport):
     report_type: str = Field(..., alias='report-type')
 
 
@@ -874,8 +874,8 @@ class LoadViewResult(BaseModel):
     config: Optional[Dict[str, str]] = None
 
 
-class ReportMetricsRequest2(BaseModel):
-    __root__: Union[ReportMetricsRequest, ReportMetricsRequest1]
+class ReportMetricsRequest(BaseModel):
+    __root__: Union[ReportMetricsRequest1, ReportMetricsRequest2]
 
 
 class ScanReport(BaseModel):
@@ -901,7 +901,7 @@ class Schema(StructType):
     )
 
 
-class ReportMetricsRequest(ScanReport):
+class ReportMetricsRequest1(ScanReport):
     report_type: str = Field(..., alias='report-type')
 
 
@@ -914,4 +914,4 @@ ViewMetadata.update_forward_refs()
 AddSchemaUpdate.update_forward_refs()
 CreateTableRequest.update_forward_refs()
 CreateViewRequest.update_forward_refs()
-ReportMetricsRequest2.update_forward_refs()
+ReportMetricsRequest.update_forward_refs()

Reply via email to