coding-kitties / flask-swagger-generator

A simple to use flask swagger generator working with the Flask web framework.
MIT License
6 stars 6 forks source link

Does not support "path" InputType #7

Closed BitcoinDBA closed 1 year ago

BitcoinDBA commented 3 years ago

Problem

Flask has a specific string type that accepts slashes, which can be also considered a string. See URL Route Registrations

Solution

Add 'path' to list of values that return STRING in InputType.from_string

MDUYN commented 2 years ago

Opened a branch for and will be scheduled for implementation

fizaashraf37 commented 1 year ago

I have created a fix branch for this with PR#30

MDUYN commented 1 year ago

@fizaashraf37 Could you add some tests. It seems that path does not work in the swagger editor. I added tests in the "test_url_path_parameters.py"

fizaashraf37 commented 1 year ago

Thanks @MDUYN , I have fixed the issue. Can you tell in which branch you have added this test?

MDUYN commented 1 year ago

@fizaashraf37 sorry I forget to mention which branch its on. Its on #34