Giter Club home page Giter Club logo

Comments (9)

ergo avatar ergo commented on June 17, 2024

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.

from pyramid_apispec.

pansen avatar pansen commented on June 17, 2024

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..

image

Ideas?

from pyramid_apispec.

pansen avatar pansen commented on June 17, 2024

Ah. There must be some exclusion on maybe_view.get("callable").__name__ == '_fallback_view'...

from pyramid_apispec.

ergo avatar ergo commented on June 17, 2024

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.

from pyramid_apispec.

pansen avatar pansen commented on June 17, 2024

Sure, I will prepare something. Thanks for your fast replies :)

from pyramid_apispec.

pansen avatar pansen commented on June 17, 2024

Looking forward for your feedback @ergo

from pyramid_apispec.

ergo avatar ergo commented on June 17, 2024

@pansen Hey, I've left some comments for you.

from pyramid_apispec.

ergo avatar ergo commented on June 17, 2024

@pansen hey any news on this?

from pyramid_apispec.

ergo avatar ergo commented on June 17, 2024

This issue was fixed by other commits.

from pyramid_apispec.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.