Open
Description
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
Labels
No labels