File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/models-library/src/models_library/api_schemas_catalog Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1010 update_schema_doc ,
1111)
1212
13- PortKindStr = Literal ["input" , "output" ]
14-
1513
1614class ServicePortGet (BaseModel ):
1715 key : str = Field (
@@ -20,7 +18,7 @@ class ServicePortGet(BaseModel):
2018 pattern = PUBLIC_VARIABLE_NAME_RE ,
2119 title = "Key name" ,
2220 )
23- kind : PortKindStr
21+ kind : Literal [ "input" , "output" ]
2422 content_media_type : str | None = None
2523 content_schema : dict [str , Any ] | None = Field (
2624 None ,
@@ -58,7 +56,7 @@ class ServicePortGet(BaseModel):
5856 @classmethod
5957 def from_domain_model (
6058 cls ,
61- kind : PortKindStr ,
59+ kind : Literal [ "input" , "output" ] ,
6260 key : str ,
6361 port : ServiceInput | ServiceOutput ,
6462 ) -> "ServicePortGet" :
You can’t perform that action at this time.
0 commit comments