Closed pansen closed 5 years ago
Interestingly - I also wrote cornice marshmallow support :), I did not look at cornice.ext.apispec - they have that package that currently supports colander schemes. I don't know why the docblock is not being read, you would have to do some debugging on your end, probably introspection does not pick cornice services or its wrapped somehow.
The problem seems to be, that in pyramid_apispec.helpers.add_pyramid_paths
it detects 3 introspectables
(in the playground, without Cornice, only 1). That alone seems not to be the problem, but that the last of the 3 does not have the __doc__
anymore..
Ideas?
Ah. There must be some exclusion on maybe_view.get("callable").__name__ == '_fallback_view'
...
That's probably caused by cornice internals and venusian handling that. I don't really have time to look at that right now, but it would be easier for us to test if you could provide a minimal test case, it would be useful to file a bug against pyramid_apispec or cornice depending on where the problem appears. I could look at it when I have a moment, debugging from screenshots will be hard.
Sure, I will prepare something. Thanks for your fast replies :)
Looking forward for your feedback @ergo
@pansen Hey, I've left some comments for you.
@pansen hey any news on this?
This issue was fixed by other commits.
Hi @ergo ,
thank you very much for that lib. I integrated it nicely working into a playground project, rendered it with a different yaml lib
convert that output via
widdershins
and put that
index.html.md
into Slate. Much wow ;)Now I integrated it into my real project, which is using Cornice. Unfortunately this does not seem as an easy pick.
I can register that route, but the docblock is not being read.
Do you have any guess, or hint where to go?
Cheers