Skip to content

Commit 9536c11

Browse files
author
nik
committed
Update generator, remove 3.9 deps
1 parent 19b9369 commit 9536c11

File tree

3 files changed

+90
-4
lines changed

3 files changed

+90
-4
lines changed

fern/generators.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ groups:
3333
- from: _legacy
3434
imports:
3535
- Client
36-
pyproject_python_version: '^3.9'
36+
# pyproject_python_version: '^3.9'
3737
extra_dependencies:
3838
pandas: '>=0.24.0'
3939
requests: '>=2.22.0'
@@ -44,9 +44,9 @@ groups:
4444
appdirs: '>=1.4.3'
4545
lxml: '>=4.2.5'
4646
xmljson: '0.2.1'
47-
jsonschema: '3.2.0'
47+
jsonschema: '>=4.23.0'
4848
requests-mock: '1.12.1'
49-
scikit-learn: '1.5.1'
49+
# scikit-learn: '1.5.1'
5050
smart-casing: true
5151
python-sdk-local:
5252
audiences:

fern/openapi/overrides.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,25 @@ paths:
1212
x-fern-sdk-method-name: create
1313
x-fern-audiences:
1414
- public
15+
/api/comments/{id}:
16+
get:
17+
$ref: "./resources/comments.yaml#/paths/~1api~1comments~1{id}/get"
18+
x-fern-sdk-group-name: comments
19+
x-fern-sdk-method-name: get
20+
x-fern-audiences:
21+
- public
22+
patch:
23+
$ref: "./resources/comments.yaml#/paths/~1api~1comments~1{id}/patch"
24+
x-fern-sdk-group-name: comments
25+
x-fern-sdk-method-name: update
26+
x-fern-audiences:
27+
- public
28+
delete:
29+
$ref: "./resources/comments.yaml#/paths/~1api~1comments~1{id}/delete"
30+
x-fern-sdk-group-name: comments
31+
x-fern-sdk-method-name: delete
32+
x-fern-audiences:
33+
- public
1534
"/api/annotations/{id}/":
1635
get:
1736
summary: Get annotation by its ID
@@ -2687,6 +2706,11 @@ components:
26872706
title: workspace
26882707
description: Workspace ID
26892708
type: integer
2709+
model_version:
2710+
title: model_version
2711+
description: Model version
2712+
type: string
2713+
example: 1.0
26902714
required: true
26912715

26922716
api_workspaces_createData:
@@ -2720,4 +2744,8 @@ components:
27202744
description: Workspace color in HEX format
27212745
type: string
27222746
default: "#FFFFFF"
2747+
is_archived:
2748+
title: is_archived
2749+
description: Is workspace archived
2750+
type: boolean
27232751
required: true

fern/openapi/resources/comments.yaml

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,62 @@ paths:
4949
application/json:
5050
schema:
5151
$ref: "#/components/schemas/Comment"
52-
52+
/api/comments/{id}:
53+
get:
54+
summary: Get comment
55+
description: >
56+
57+
Get a specific comment.
58+
parameters:
59+
- name: id
60+
in: path
61+
description: Comment ID
62+
required: true
63+
schema:
64+
type: integer
65+
responses:
66+
"200":
67+
description: ""
68+
content:
69+
application/json:
70+
schema:
71+
$ref: "#/components/schemas/Comment"
72+
patch:
73+
summary: Update comment
74+
description: >
75+
76+
Update a specific comment.
77+
parameters:
78+
- name: id
79+
in: path
80+
description: Comment ID
81+
required: true
82+
schema:
83+
type: integer
84+
requestBody:
85+
$ref: "#/components/requestBodies/api_comments_create"
86+
responses:
87+
"200":
88+
description: ""
89+
content:
90+
application/json:
91+
schema:
92+
$ref: "#/components/schemas/Comment"
93+
delete:
94+
summary: Delete comment
95+
description: >
96+
97+
Delete a specific comment.
98+
parameters:
99+
- name: id
100+
in: path
101+
description: Comment ID
102+
required: true
103+
schema:
104+
type: integer
105+
responses:
106+
"204":
107+
description: ""
53108

54109
components:
55110
schemas:
@@ -116,3 +171,6 @@ components:
116171
text:
117172
title: Comment message
118173
type: string
174+
is_resolved:
175+
title: Is comment resolved
176+
type: boolean

0 commit comments

Comments
 (0)