Skip to content

Deprecate the role and tag parameters#239

Merged
greyli merged 1 commit intomainfrom
deprecate-tag-role
Apr 10, 2022
Merged

Deprecate the role and tag parameters#239
greyli merged 1 commit intomainfrom
deprecate-tag-role

Conversation

@greyli
Copy link
Copy Markdown
Member

@greyli greyli commented Apr 10, 2022

Use roles and tags instead:

@app.get('/')
@app.auth_required(auth, roles=['admin'])
@app.doc(tags=['Foo'])
def hello():
    return 'Hello'

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code docstring.
  • Add an entry in CHANGES.md summarizing the change and linking to the issue and your username.
  • Add *Version changed* or *Version added* note in any relevant docs and docstring.
  • Run pytest and tox, no tests failed.

@greyli greyli added this to the 1.0.0 milestone Apr 10, 2022
@greyli greyli merged commit edbc632 into main Apr 10, 2022
@greyli greyli deleted the deprecate-tag-role branch April 10, 2022 04:18
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.

Deprecate the single value parameters (tag, role)

1 participant