Code Monkey home page Code Monkey logo

Comments (5)

kemingy avatar kemingy commented on July 23, 2024 4

The pull request that implements these features failed the linting due to 3 lines being too long... 😅

Will merge it to another branch and fix the lint today.

from spectree.

kemingy avatar kemingy commented on July 23, 2024 1

Currently, spectree will validate the data and generate the OpenAPI document. If the validation failed, it will return 422 with details. It doesn't support special Auth parameters #56 and status code 401 or 403.

If you want to use this library with authentication and authorization, you can define the schema for headers and do the auth by yourself.

I know this is not perfect. Welcome PR.

from spectree.

vaosilva avatar vaosilva commented on July 23, 2024 1

The ability to specify whether the endpoints are protected by authorization (particularly per endpoint or/and in general on app level) and if so, to specify what kind of authorization is uses - a very needed feature. Please, add it.
Subscribed to this topic.

Yes. Very true. Subscribed as well.
I started using spectree for a flask API I'm contributing to and only later on I noticed the lack of this.
The pull request that implements these features failed the linting due to 3 lines being too long... 😅

from spectree.

vaosilva avatar vaosilva commented on July 23, 2024 1

@kemingy Thanks a lot, and congrats for this awesome project!

from spectree.

alexted avatar alexted commented on July 23, 2024

The ability to specify whether the endpoints are protected by authorization (particularly per endpoint or/and in general on app level) and if so, to specify what kind of authorization is uses - a very needed feature. Please, add it.
Subscribed to this topic.

from spectree.

Related Issues (20)

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.