Skip to content

Conversation

sonthonaxrk
Copy link
Contributor

Currently this will not work as flasgger only supports using schemas in the SwaggerView. Not sure if this deliberate, or just that cool people don't use function based views (it was quite confusing that it didn't work with swag_from).

@views.route('/abc/', methods=['GET'])
@swag_from({
    'responses': {
        HTTPStatus.OK.value: {
            'schema': MySchema
        }
    }
})
def endpoint():
     ....

@sonthonaxrk
Copy link
Contributor Author

Hey anyone around to review? :)

@billyrrr billyrrr self-requested a review September 26, 2019 20:29
@sonthonaxrk
Copy link
Contributor Author

Any word on if this will be merged? Using my own branch for a project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants