File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
services/api-server/src/simcore_service_api_server/models/schemas Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,13 @@ class Solver(BaseModel):
4646
4747 # Human readables Identifiers
4848 title : str = Field (..., description = "Human readable name" )
49- description : str = None # TODO: should be nullable
49+ description : str | None = None
5050 maintainer : str
5151 # TODO: consider released: Optional[datetime] required?
5252 # TODO: consider version_aliases: list[str] = [] # remaining tags
5353
5454 # Get links to other resources
55- url : HttpUrl = Field (
56- ..., description = "Link to get this resource"
57- ) # TODO: should be nullable
55+ url : HttpUrl | None = Field (..., description = "Link to get this resource" )
5856 model_config = ConfigDict (
5957 extra = "ignore" ,
6058 json_schema_extra = {
@@ -120,10 +118,10 @@ class SolverPort(BaseModel):
120118 title = "Key name" ,
121119 )
122120 kind : PortKindStr
123- content_schema : dict [str , Any ] = Field (
121+ content_schema : dict [str , Any ] | None = Field (
124122 None ,
125123 description = "jsonschema for the port's value. SEE https://json-schema.org" ,
126- ) # TODO: should be nullable
124+ )
127125 model_config = ConfigDict (
128126 extra = "ignore" ,
129127 json_schema_extra = {
You can’t perform that action at this time.
0 commit comments