Grey Li

Results 169 comments of Grey Li
trafficstars

I hope this could become a global configuration, but we cannot access the `app.config` object in the `input` decorator since it could be called by a blueprint object (`bp.input()`).

Hi, thanks for the detailed explanation. Can you provide a minimal and complete code example that can reproduce your initial issue? Especially for: > When I say spec_path='/openapi' this is...

@Positev Please provide your code, it seems you used an incorrect OpenAPI version number (normally you don't need to set the `OPENAPI_VERSION` config or the `app.openapi_version` attribute).

What's the output of `flask spec` command or http://localhost:5000/openapi.json?

There are some reasons cause Gunicorn to have trouble accessing the spec file at `/openapi.json`.

> Hey @greyli , I'm interested in contributing to this issue, so before I start working on it, would you mind sparing your time explaining what the issue is about...

This should be handled in apispec. I will work on it (or create an issue in apispec) later after 1.0 is released. https://github.com/marshmallow-code/apispec/blob/dev/src/apispec/ext/marshmallow/openapi.py#L104

Thanks for the information! I haven't started thinking about the implementation of this feature yet. I will revisit it when I try to implement it.

@boring-plans Thanks! Feel free to make a PR to fix this.

Hi, I will do some experiments for the Pydantic support when this project is stable, and it probably will be implemented as an extension.