aiohttp-swagger icon indicating copy to clipboard operation
aiohttp-swagger copied to clipboard

Incorrect behavior in case of `/` character in the `tags` section

Open SergeyTsaplin opened this issue 7 years ago • 0 comments

I use library version 1.0.5 When I put / to the tags section the method expanding doesn't work, for exapmple:

description: Returns current scale settings
tags:
- API/Scale settings
produces:
- application/json
responses:
    "200":
        description: successful operation.
    "405":
        description: invalid HTTP Method

When I click to the method in the web UI nothing happens and there are error message in the js-console:

http://localhost:8000/doc#!/API%2FScale_settings/head_api_configuration_scaling

Error: Syntax error, unrecognized expression: %2FScale_settings_head_api_configuration_scaling_content jquery-1.8.0.min.js:2:56628
	Z.error http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:56628
	bg http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:46474
	Z.compile http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:57617
	bm http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:58497
	bm http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:59823
	Z http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:50393
	find http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:60731
	init http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:10549
	p http://localhost:8000/doc/swagger_static/lib/jquery-1.8.0.min.js:2:9319
	shebang client.js:693
	shebang self-hosted:972:17

SergeyTsaplin avatar Oct 30 '18 09:10 SergeyTsaplin