Motov Yurii

Results 218 comments of Motov Yurii

@archfz, thanks for your interest and efforts! Could you please tell me what the current state of this PR is and what are your future plans on it? Do you...

I opened a #13614 with alternative implementation (`exc_class_or_status_code` is either a single element or a sequence of similar elements). Feel free to chose which approach is more conventional. Also, ready...

What if we simplify this part of code example: ```python def get_city_client(settings: ClientSettingsDep) -> CityClient: return CityClient(settings=settings) CityClientDep = Annotated[CityClient, Depends(get_city_client)] def get_village_client(settings: ClientSettingsDep) -> VillageClient: return VillageClient(settings=settings) VillageClientDep =...

@EgorOnishchuk , thanks for the reply! If the tasks is defined this way, I would create two separate dependency functions and assign one of them to `get_client` variable: ```python async...

IMHO, the only strong argument is that FastAPI's `Depends` can't be used outside of FastAPI endpoints and sub-dependencies. So, I would focus on such use-cases to create really good code...

@JSCU-CNI, thank you for your work! I haven't delved into the implementation details yet, just looked at it briefly. As I can see, the case with `BaseModel` that has `extra="forbid"`...

@JSCU-CNI, thanks for the explanation! I think I agree about `extra=forbid`. Actually it's not that hard to find the cause of "Extra inputs are not permitted" error. One more thing....

Side note: Regarding the parameters in `RangeParams` and `filter` being on the same level, we should probably think about how it will work with other serialization methods (mainly [DeepObject serialization](https://github.com/fastapi/fastapi/issues/3163))...

@EmiFunes91, have you checked whether it really works (separate db is used)? I haven't run it yet, but it seems that the implementation is incomplete and it will not work

@vk496, thank you for the interest in FastAPI! Would it make sense to turn `swagger_ui_scripts` into a list to preserve the order of scripts? In this implementation, `https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-standalone-preset.js` script will...