Skip to content

Commit cd233f8

Browse files
committed
fix: query marketplace collection failed
1 parent 6afbb11 commit cd233f8

4 files changed

Lines changed: 5 additions & 19 deletions

File tree

aperag/api/components/schemas/marketplace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ SharedCollection:
7979
- id
8080
- title
8181
- owner_user_id
82-
- subscription_count
8382
- config
8483

8584
SharedCollectionList:

aperag/schema/view_models.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
# Copyright 2025 ApeCloud, Inc.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
151
# generated by datamodel-codegen:
162
# filename: openapi.merged.yaml
17-
# timestamp: 2025-11-11T06:17:00+00:00
3+
# timestamp: 2025-12-02T08:09:59+00:00
184

195
from __future__ import annotations
206

@@ -1406,7 +1392,9 @@ class SharedCollection(BaseModel):
14061392
gmt_subscribed: Optional[datetime] = Field(
14071393
None, description='Subscription time (only has value when subscribed)'
14081394
)
1409-
subscription_count: int = Field(..., description='Total number of subscriptions')
1395+
subscription_count: Optional[int] = Field(
1396+
0, description='Total number of subscriptions'
1397+
)
14101398
config: SharedCollectionConfig = Field(
14111399
..., description='Collection configuration settings'
14121400
)

web/src/api/models/shared-collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface SharedCollection {
7070
* @type {number}
7171
* @memberof SharedCollection
7272
*/
73-
'subscription_count': number;
73+
'subscription_count'?: number;
7474
/**
7575
* Collection configuration settings
7676
* @type {SharedCollectionConfig}

web/src/api/openapi.merged.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6368,7 +6368,6 @@ components:
63686368
- id
63696369
- title
63706370
- owner_user_id
6371-
- subscription_count
63726371
- config
63736372
SharedCollectionList:
63746373
type: object

0 commit comments

Comments
 (0)