Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camel case endpoint methods within blueprints are converted to lower case #128

Open
FrancisJMR opened this issue Jan 11, 2019 · 1 comment

Comments

@FrancisJMR
Copy link

KeyError generated when a blueprint's endpoint method is defined with a camel case pattern.

E.g.

In views/pet.py

PetName = Blueprint('PetName', __name__, template_folder='templates')
@PetName.route('/petname', methods=['POST'])
@use_kwargs({'name': fields.Str()})
@marshal_with(PetNameSchema(many=False))
def petName():
    ...

In app.py

...
docs.register(petName, blueprint='PetName')

Registering the doc with blueprint results in KeyError: 'PetName.petname'

Changing the endpoint to lower case e.g. def petname() solves this.

@MattiaFailla
Copy link

MattiaFailla commented Sep 21, 2021

Unfortunately I'm encountering the same error but it seems that a PR is already available here #100

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

No branches or pull requests

2 participants