Skip to content

Commit 88519ce

Browse files
authored
fix schema (#412)
1 parent d4f9445 commit 88519ce

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/specklepy/core/api/inputs/project_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class ProjectUpdateRoleInput(GraphQLBaseModel):
5454

5555

5656
class WorksaceProjectsFilter(GraphQLBaseModel):
57-
search: str
57+
search: Optional[str]
5858
"""Filter out projects by name"""
59-
with_project_role_only: bool
59+
with_project_role_only: Optional[bool]
6060
"""
6161
Only return workspace projects that the active user has an explicit project role in
6262
"""

src/specklepy/core/api/models/current.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ class ModelWithVersions(Model):
153153

154154

155155
class ProjectPermissionChecks(GraphQLBaseModel):
156-
canCreateModel: "PermissionCheckResult"
157-
canDelete: "PermissionCheckResult"
156+
can_create_model: "PermissionCheckResult"
157+
can_delete: "PermissionCheckResult"
158158

159159

160160
class Project(GraphQLBaseModel):

tests/integration/client/current/test_project_resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def test_project_get_permissions(
7272
result = client.project.get_permissions(test_project.id)
7373

7474
assert isinstance(result, ProjectPermissionChecks)
75-
assert result.canCreateModel.authorized is True
76-
assert result.canDelete.authorized is True
75+
assert result.can_create_model.authorized is True
76+
assert result.can_delete.authorized is True
7777

7878
def test_project_update(self, client: SpeckleClient, test_project: Project):
7979
new_name = "MY new name"

0 commit comments

Comments
 (0)