Skip to content

Commit

Permalink
Merge pull request #3 from dapper91/swagger-ui-fix
Browse files Browse the repository at this point in the history
- initializer.js embedded into index.html.
  • Loading branch information
dapper91 committed Mar 16, 2024
2 parents fa4998f + c7086cf commit 31e19e4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion openapi_ui_bundles/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__description__ = 'Python static file bundles for OpenAPI UI tools'
__url__ = 'https://github.com/dapper91/python-openapi-ui-bundles'

__version__ = '0.2.0'
__version__ = '0.2.1'

__author__ = 'Dmitry Pershin'
__email__ = 'dapper1291@gmail.com'
Expand Down
18 changes: 17 additions & 1 deletion openapi_ui_bundles/swagger_ui/vendor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@
<div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
<script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
<script src="./swagger-initializer.js" charset="UTF-8"> </script>
<script>
window.onload = function() {
window.ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
});
};
</script>
</body>
</html>
20 changes: 0 additions & 20 deletions openapi_ui_bundles/swagger_ui/vendor/swagger-initializer.js

This file was deleted.

5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def parse_about():
packages=find_packages(),
install_requires=requirements,
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
Expand All @@ -61,6 +61,9 @@ def parse_about():
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
project_urls={
'Source': 'https://github.com/dapper91/python-openapi_ui_bundles',
Expand Down

0 comments on commit 31e19e4

Please sign in to comment.