Skip to content

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

Open
@FrancisJMR

Description

@FrancisJMR

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions