Skip to content

Commit 4445ecc

Browse files
committed
replace parameter table with generic-table
1 parent 18c9ac6 commit 4445ecc

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

spec/generated/bundled-polaris-catalog-service.yaml

+10-18
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
171
openapi: 3.0.3
182
info:
193
title: Apache Polaris and Apache Iceberg REST Catalog API
@@ -1437,11 +1421,11 @@ paths:
14371421
$ref: '#/components/responses/ServiceUnavailableResponse'
14381422
5XX:
14391423
$ref: '#/components/responses/ServerErrorResponse'
1440-
/polaris/v1/{prefix}/namespaces/{namespace}/generic-tables/{table}:
1424+
/polaris/v1/{prefix}/namespaces/{namespace}/generic-tables/{generic-table}:
14411425
parameters:
14421426
- $ref: '#/components/parameters/prefix'
14431427
- $ref: '#/components/parameters/namespace'
1444-
- $ref: '#/components/parameters/table'
1428+
- $ref: '#/components/parameters/generic-table'
14451429
get:
14461430
tags:
14471431
- Generic Table API
@@ -3717,6 +3701,14 @@ components:
37173701
schema:
37183702
type: string
37193703
example: sales
3704+
generic-table:
3705+
name: generic-table
3706+
in: path
3707+
description: A generic table name
3708+
required: true
3709+
schema:
3710+
type: string
3711+
example: sales
37203712
examples:
37213713
ListNamespacesNonEmptyExample:
37223714
summary: A non-empty list of namespaces

spec/polaris-catalog-apis/generic-tables-api.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ paths:
101101
5XX:
102102
$ref: '../iceberg-rest-catalog-open-api.yaml#/components/responses/ServerErrorResponse'
103103

104-
/polaris/v1/{prefix}/namespaces/{namespace}/generic-tables/{table}:
104+
/polaris/v1/{prefix}/namespaces/{namespace}/generic-tables/{generic-table}:
105105
parameters:
106106
- $ref: '../iceberg-rest-catalog-open-api.yaml#/components/parameters/prefix'
107107
- $ref: '../iceberg-rest-catalog-open-api.yaml#/components/parameters/namespace'
108-
- $ref: '../iceberg-rest-catalog-open-api.yaml#/components/parameters/table'
108+
- $ref: '#/components/parameters/generic-table'
109109

110110
get:
111111
tags:
@@ -172,6 +172,16 @@ paths:
172172
$ref: '../iceberg-rest-catalog-open-api.yaml#/components/responses/ServerErrorResponse'
173173

174174
components:
175+
parameters:
176+
generic-table:
177+
name: generic-table
178+
in: path
179+
description: A generic table name
180+
required: true
181+
schema:
182+
type: string
183+
example: "sales"
184+
175185
schemas:
176186
CreateGenericTableRequest:
177187
type: object

spec/polaris-catalog-service.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ paths:
140140
/polaris/v1/{prefix}/namespaces/{namespace}/generic-tables:
141141
$ref: './polaris-catalog-apis/generic-tables-api.yaml#/paths/~1polaris~1v1~1{prefix}~1namespaces~1{namespace}~1generic-tables'
142142

143-
/polaris/v1/{prefix}/namespaces/{namespace}/generic-tables/{table}:
144-
$ref: './polaris-catalog-apis/generic-tables-api.yaml#/paths/~1polaris~1v1~1{prefix}~1namespaces~1{namespace}~1generic-tables~1{table}'
143+
/polaris/v1/{prefix}/namespaces/{namespace}/generic-tables/{generic-table}:
144+
$ref: './polaris-catalog-apis/generic-tables-api.yaml#/paths/~1polaris~1v1~1{prefix}~1namespaces~1{namespace}~1generic-tables~1{generic-table}'
145145

146146
components:
147147
securitySchemes:

0 commit comments

Comments
 (0)