Results 45 comments of llc

[v4.0.0rc2](https://pypi.org/project/flask-openapi3/4.0.0rc2/) has been released.

@devssauro You can use `flask openapi -f yaml` get spec file in YAML. More information about the command [flask openapi](https://luolingchun.github.io/flask-openapi3/v4.x/Usage/Specification/#command-flask-openapi). Of course, if you cannot meet your needs, you can...

[v4.0.0rc3](https://pypi.org/project/flask-openapi3/4.0.0rc3/) has been released.

Can you write a detailed example? Here's a decorator sample code for permission validation: https://github.com/luolingchun/flask-api-demo/blob/master/src/app/api/user.py#L54 https://github.com/luolingchun/flask-api-demo/blob/master/src/app/api/admin.py#L31 https://github.com/luolingchun/flask-api-demo/blob/master/src/app/utils/jwt_tools.py#L52 By the way, `user_id: str, **_` is a misuse of the attempt to...

I compared `flask-openapi3` and `flask-pydantic` and came to the following conclusion: 1. `flask-pydantic` uses a standalone `@validate()` decorator, so you can choose the `@intercept()` execution order. ```python # Execute @validate()...

You can do this: https://docs.pydantic.dev/latest/concepts/models/#rootmodel-and-custom-root-types ```python from pydantic import RootModel class Resp(BaseModel): a: int class Resp1(BaseModel): b: int class UnionRespResp2(RootModel): root:Union[Resp, Resp1] @app.get("/", responses={200: UnionRespResp2}) def book(): pass ```

When you don't have a configuration example, the [Swagger UI](https://github.com/swagger-api/swagger-ui) automatically generates one. You can do this by configuring [openapi_extra](https://luolingchun.github.io/flask-openapi3/v3.x/Usage/Model_Config/#responses) fields in the `model_config`. ```python from typing import Union from...

@GasperFunda I didn't repeat your bug. server: ```python from flask_cors import CORS, cross_origin from flask_openapi3 import Info, Tag from flask_openapi3 import OpenAPI info = Info(title="Users Microservice for Bank system cr23",...

Good idea, thank you in advance for the work you did on this.

In fact, `flask-openapi3` is not an extension of `Flask`, but an inheritance and enhancement of `Flask`.