1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

publish: 5.8.5

This commit is contained in:
Steffo 2020-05-07 02:30:53 +02:00
parent 53ddcf90ac
commit 04e8bdb02a
3 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,7 @@
[tool.poetry]
name = "royalnet"
version = "5.8.4"
version = "5.8.5"
description = "A multipurpose bot and web framework"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+"

View file

@ -37,6 +37,8 @@ class DocsStar(PageStar):
}
})
escaped_spec = spec.replace(r"'", r"\'")
return HTMLResponse(
f"""
<html lang="en">
@ -50,7 +52,7 @@ class DocsStar(PageStar):
<div id="docs"/>
<script>
const ui = SwaggerUIBundle({{
spec: JSON.parse('{spec}'),
spec: JSON.parse('{escaped_spec}'),
dom_id: '#docs',
presets: [
SwaggerUIBundle.presets.apis,

View file

@ -1 +1 @@
semantic = "5.8.4"
semantic = "5.8.5"