File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
packages/models-library/src/models_library/api_schemas_directorv2 Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,7 @@ class ServiceExtras(BaseModel):
6767 json_schema_extra = {
6868 "examples" : [
6969 {"node_requirements" : node_example }
70- for node_example in NodeRequirements .model_json_schema ()[
71- "examples"
72- ] # type: ignore[index,union-attr]
70+ for node_example in NodeRequirements .model_json_schema ()["examples" ]
7371 ]
7472 + [
7573 {
@@ -80,9 +78,7 @@ class ServiceExtras(BaseModel):
8078 "vcs_url" :
"[email protected] :ITISFoundation/osparc-simcore.git" ,
8179 },
8280 }
83- for node_example in NodeRequirements .model_json_schema ()[
84- "examples"
85- ] # type: ignore[index,dict-item, union-attr]
81+ for node_example in NodeRequirements .model_json_schema ()["examples" ]
8682 ]
8783 + [
8884 {
@@ -94,9 +90,7 @@ class ServiceExtras(BaseModel):
9490 },
9591 "container_spec" : {"Command" : ["run" , "subcommand" ]},
9692 }
97- for node_example in NodeRequirements .model_json_schema ()[
98- "examples"
99- ] # type: ignore[index,union-attr]
93+ for node_example in NodeRequirements .model_json_schema ()["examples" ]
10094 ]
10195 }
10296 )
You can’t perform that action at this time.
0 commit comments