0

I am working on a REST api using flask/connexion. Consider this endpoint:

http://127.0.0.1:5000/api/library/{category_name}/{version}

category_name and version are from string type. How can I validate them with a custom regex?

I am using sqlalchemy and marshmallow for ORM and data serialization.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
hd.
  • 17,596
  • 46
  • 115
  • 165

1 Answers1

0

You can use the "re" library or Flask-Inputs extension