Open EdDanileyko opened 9 months ago
Were you able to use Blueprint with this, am in need of similar thing.
No I was not. I had to pass the top-level spec object into a function that registered Blueprints and reused that spec:
def make_routes(api: Blueprint, spec: FlaskPydanticSpec):
# set up logic
@api.route(...)
@spec.validate(...)
def my_route(...):
...
return api
Hello, is it possible to apply the register function to Blueprints and create apidoc on those? If this functionality is already available, then I'm not sure if I'm doing it right.
suggested solution
With this, open api docs would be registered under the path of the Blueprint.