You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: open-api/rest-catalog-open-api.py
+24-10Lines changed: 24 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,25 @@ class ErrorModel(BaseModel):
41
41
stack: Optional[List[str]] =None
42
42
43
43
44
+
classServerCapability(BaseModel):
45
+
"""
46
+
Describes a capability with versioning information supported by the server. A server is required to implement all endpoints grouped under a particular capability. For example, if a server reports the support of `views`, then all endpoints grouped under the `views` capability must be implemented by the server.
47
+
"""
48
+
49
+
capability: str=Field(
50
+
...,
51
+
description='A capability supported by the server. The currently available capabilities are:\n - tables\n - views\n - remote-signing\n - multi-table-commit\n - register-table\n - table-metrics\n',
52
+
example='views',
53
+
)
54
+
versions: List[int] =Field(
55
+
...,
56
+
description='A list of versions supported by the server for the given capability. For example, `versions = [1, 3, 5]` indicates that only these versions are supported for the given capability, but not versions `2, 4, 6`.',
57
+
example=[1, 3, 5],
58
+
min_items=1,
59
+
unique_items=True,
60
+
)
61
+
62
+
44
63
classCatalogConfig(BaseModel):
45
64
"""
46
65
Server-provided configuration for the catalog.
@@ -54,19 +73,14 @@ class CatalogConfig(BaseModel):
54
73
...,
55
74
description='Properties that should be used as default configuration; applied before client configuration.',
description='Describes capabilities supported by the server. A server is required to implement all endpoints grouped under a particular capability. For example, if a server reports the support of `views`, then all endpoints grouped under the `views` capability must be implemented by the server.',
78
+
description='Describes a capability with versioning information supported by the server',
description: Describes a capability with versioning information supported by the server. A server is required to implement all endpoints grouped under a particular capability.
1589
+
For example, if a server reports the support of `views`, then all endpoints grouped under the `views` capability must be implemented by the server.
1590
+
required:
1591
+
- capability
1592
+
- versions
1593
+
properties:
1594
+
capability:
1595
+
type: string
1596
+
description: |
1597
+
A capability supported by the server. The currently available capabilities are:
1598
+
- tables
1599
+
- views
1600
+
- remote-signing
1601
+
- multi-table-commit
1602
+
- register-table
1603
+
- table-metrics
1604
+
example: "views"
1605
+
versions:
1606
+
type: array
1607
+
uniqueItems: true
1608
+
description: A list of versions supported by the server for the given capability. For example, `versions = [1, 3, 5]` indicates that only
1609
+
these versions are supported for the given capability, but not versions `2, 4, 6`.
1610
+
items:
1611
+
type: integer
1612
+
minItems: 1
1613
+
example: [1, 3, 5]
1614
+
1584
1615
CatalogConfig:
1585
1616
type: object
1586
1617
description: Server-provided configuration for the catalog.
@@ -1602,13 +1633,10 @@ components:
1602
1633
Properties that should be used as default configuration; applied before client configuration.
1603
1634
capabilities:
1604
1635
type: array
1605
-
uniqueItems: true
1606
1636
items:
1607
-
type: string
1608
-
description:
1609
-
Describes capabilities supported by the server. A server is required to implement all endpoints grouped under a particular capability.
1610
-
For example, if a server reports the support of `views`, then all endpoints grouped under the `views` capability must be implemented by the server.
0 commit comments