Skip to content

Commit d5ad375

Browse files
0054acffbd670f5a10722ffaa4c5dbed023b4db7
1 parent c816f85 commit d5ad375

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,4 @@ setup.cfg
233233
setup.py
234234
test-requirements.txt
235235
test/__init__.py
236-
test/test_annotation_pipeline_extension.py
237-
test/test_annotation_pipeline_extension_pipelines_inner.py
238236
tox.ini

docs/AnnotationRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**metadata** | **object** | object describing metadata about the annotation, such as software used or descriptions of the keys used in the annotation. | [optional]
9-
**annotation_csv** | **str** | annotation object expressed as a CSV |
108
**name** | **str** | Descriptive name for the annotation. | [optional]
119
**description** | **str** | Long form description of the annotation. | [optional]
10+
**metadata** | **object** | | [optional] [readonly]
1211
**note_keys** | **object** | The keys (columns) in the annotation and the key's respective data type (such as an integer or string). | [optional]
1312
**pipelines** | [**List[AnnotationPipelineExtensionPipelinesInner]**](AnnotationPipelineExtensionPipelinesInner.md) | Optional pipeline descriptors used to populate annotation notes with feature columns. Each entry should include the pipeline name and the list of columns to import, along with optional version and config id. | [optional]
1413
**notes** | [**AnnotationRequestRelationshipsNotes**](AnnotationRequestRelationshipsNotes.md) | | [optional]
1514
**id** | **str** | short UUID specifying the location of this resource | [optional]
1615
**public** | **bool** | whether the resource is listed in public searches or not | [optional] [default to True]
1716
**studyset** | **str** | | [optional]
17+
**annotation_csv** | **str** | annotation object expressed as a CSV |
1818

1919
## Example
2020

neurostore_sdk/models/annotation_request.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class AnnotationRequest(BaseModel):
3030
"""
3131
AnnotationRequest
3232
"""
33-
# data type: AnnotationReturnOneOf
34-
oneof_schema_1_validator: Optional[AnnotationReturnOneOf] = None
3533
# data type: AnnotationRequestOneOf
36-
oneof_schema_2_validator: Optional[AnnotationRequestOneOf] = None
34+
oneof_schema_1_validator: Optional[AnnotationRequestOneOf] = None
35+
# data type: AnnotationReturnOneOf
36+
oneof_schema_2_validator: Optional[AnnotationReturnOneOf] = None
3737
actual_instance: Optional[Union[AnnotationRequestOneOf, AnnotationReturnOneOf]] = None
3838
one_of_schemas: Set[str] = { "AnnotationRequestOneOf", "AnnotationReturnOneOf" }
3939

@@ -58,16 +58,16 @@ def actual_instance_must_validate_oneof(cls, v):
5858
instance = AnnotationRequest.model_construct()
5959
error_messages = []
6060
match = 0
61-
# validate data type: AnnotationReturnOneOf
62-
if not isinstance(v, AnnotationReturnOneOf):
63-
error_messages.append(f"Error! Input type `{type(v)}` is not `AnnotationReturnOneOf`")
64-
else:
65-
match += 1
6661
# validate data type: AnnotationRequestOneOf
6762
if not isinstance(v, AnnotationRequestOneOf):
6863
error_messages.append(f"Error! Input type `{type(v)}` is not `AnnotationRequestOneOf`")
6964
else:
7065
match += 1
66+
# validate data type: AnnotationReturnOneOf
67+
if not isinstance(v, AnnotationReturnOneOf):
68+
error_messages.append(f"Error! Input type `{type(v)}` is not `AnnotationReturnOneOf`")
69+
else:
70+
match += 1
7171
if match > 1:
7272
# more than 1 match
7373
raise ValueError("Multiple matches found when setting `actual_instance` in AnnotationRequest with oneOf schemas: AnnotationRequestOneOf, AnnotationReturnOneOf. Details: " + ", ".join(error_messages))
@@ -88,15 +88,15 @@ def from_json(cls, json_str: str) -> Self:
8888
error_messages = []
8989
match = 0
9090

91-
# deserialize data into AnnotationReturnOneOf
91+
# deserialize data into AnnotationRequestOneOf
9292
try:
93-
instance.actual_instance = AnnotationReturnOneOf.from_json(json_str)
93+
instance.actual_instance = AnnotationRequestOneOf.from_json(json_str)
9494
match += 1
9595
except (ValidationError, ValueError) as e:
9696
error_messages.append(str(e))
97-
# deserialize data into AnnotationRequestOneOf
97+
# deserialize data into AnnotationReturnOneOf
9898
try:
99-
instance.actual_instance = AnnotationRequestOneOf.from_json(json_str)
99+
instance.actual_instance = AnnotationReturnOneOf.from_json(json_str)
100100
match += 1
101101
except (ValidationError, ValueError) as e:
102102
error_messages.append(str(e))

0 commit comments

Comments
 (0)