@@ -189,13 +189,12 @@ class OpenAPI:
189189 title : str
190190 description : str
191191 version : str
192- # security_schemes: Dict
193192 schemas : Dict [str , Schema ]
194193 endpoint_collections_by_tag : Dict [str , EndpointCollection ]
195194 enums : Dict [str , EnumProperty ]
196195
197196 @staticmethod
198- def check_enums (schemas : Iterable [Schema ], collections : Iterable [EndpointCollection ]) -> Dict [str , EnumProperty ]:
197+ def _check_enums (schemas : Iterable [Schema ], collections : Iterable [EndpointCollection ]) -> Dict [str , EnumProperty ]:
199198 enums : Dict [str , EnumProperty ] = {}
200199
201200 def _iterate_properties () -> Generator [Property , None , None ]:
@@ -225,14 +224,13 @@ def from_dict(d: Dict[str, Dict[str, Any]], /) -> OpenAPI:
225224 """ Create an OpenAPI from dict """
226225 schemas = Schema .dict (d ["components" ]["schemas" ])
227226 endpoint_collections_by_tag = EndpointCollection .from_dict (d ["paths" ])
228- enums = OpenAPI .check_enums (schemas .values (), endpoint_collections_by_tag .values ())
227+ enums = OpenAPI ._check_enums (schemas .values (), endpoint_collections_by_tag .values ())
229228
230229 return OpenAPI (
231230 title = d ["info" ]["title" ],
232231 description = d ["info" ]["description" ],
233232 version = d ["info" ]["version" ],
234233 endpoint_collections_by_tag = endpoint_collections_by_tag ,
235234 schemas = schemas ,
236- # security_schemes=d["components"]["securitySchemes"],
237235 enums = enums ,
238236 )
0 commit comments