You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository is currently being migrated. It's locked while the migration is in progress.
I was curious if there will be support for doing a partial substitution of a doc string instead of an entire replace if you specify a .yml file?
What I'm trying to do is something like:
def my_func():
"""
My func title
special text for my func
swagger_from_file: file.yml
more special text
"""
And have the special text for my func and more special text be represented as well. Currently the whole doc string gets replaced by what's in the file.yml file. This is especially useful when there's a bunch of endpoints with mostly common functionality but differ by a few parameters for example.
I'd be happy to make a PR for this if you see it as a worthy addition! 😄
The text was updated successfully, but these errors were encountered:
So basically a merge of swagger found in docstrings and swagger_from_file?
Sounds very worthy, I assume that inline swagger would take preference, right?
I was curious if there will be support for doing a partial substitution of a doc string instead of an entire replace if you specify a .yml file?
What I'm trying to do is something like:
And have the
special text for my func
andmore special text
be represented as well. Currently the whole doc string gets replaced by what's in thefile.yml
file. This is especially useful when there's a bunch of endpoints with mostly common functionality but differ by a few parameters for example.I'd be happy to make a PR for this if you see it as a worthy addition! 😄
The text was updated successfully, but these errors were encountered: