sc-oa 0.7.0.14__tar.gz → 0.7.0.15__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of sc-oa might be problematic. Click here for more details.

Files changed (164) hide show
  1. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/.github/workflows/pypi.yml +29 -29
  2. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/.github/workflows/tests.yml +60 -60
  3. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/.gitignore +54 -54
  4. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/.gitmodules +3 -3
  5. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/.mailmap +1 -1
  6. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/.pre-commit-config.yaml +16 -16
  7. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/CHANGES +76 -76
  8. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/LICENSE +23 -23
  9. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/MANIFEST.in +12 -12
  10. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/PKG-INFO +37 -36
  11. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/README.rst +44 -44
  12. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/docs/conf.py +26 -26
  13. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/docs/index.rst +137 -137
  14. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/docs/specs/openapi.yml +134 -134
  15. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/pyproject.toml +8 -8
  16. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sc_oa.egg-info/PKG-INFO +37 -36
  17. sc_oa-0.7.0.15/sc_oa.egg-info/SOURCES.txt +162 -0
  18. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/setup.cfg +51 -51
  19. sc_oa-0.7.0.15/setup.py +4 -0
  20. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/__init__.py +10 -10
  21. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/__init__.py +93 -93
  22. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/__main__.py +86 -86
  23. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/_lib2to3.py +378 -378
  24. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/directive.py +58 -58
  25. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/locale/es_ES/LC_MESSAGES/openapi.po +170 -170
  26. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/locale/fr_FR/LC_MESSAGES/openapi.po +170 -170
  27. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/locale/openapi.pot +168 -168
  28. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/openapi20.py +263 -263
  29. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/openapi30.py +749 -748
  30. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/renderers/__init__.py +18 -18
  31. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/renderers/_description.py +26 -26
  32. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/renderers/_httpdomain.py +620 -620
  33. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/renderers/_httpdomain_old.py +59 -59
  34. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/renderers/_model.py +426 -422
  35. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/renderers/_toc.py +48 -48
  36. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/renderers/abc.py +46 -46
  37. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/schema_utils.py +137 -137
  38. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/utils.py +137 -137
  39. sc_oa-0.7.0.15/tests/OpenAPI-Specification/.git +1 -0
  40. sc_oa-0.7.0.15/tests/OpenAPI-Specification/.gitignore +8 -0
  41. sc_oa-0.7.0.15/tests/OpenAPI-Specification/.travis.yml +6 -0
  42. sc_oa-0.7.0.15/tests/OpenAPI-Specification/CONTRIBUTORS.md +9 -0
  43. sc_oa-0.7.0.15/tests/OpenAPI-Specification/DEVELOPMENT.md +118 -0
  44. sc_oa-0.7.0.15/tests/OpenAPI-Specification/GOVERNANCE.md +31 -0
  45. sc_oa-0.7.0.15/tests/OpenAPI-Specification/IMPLEMENTATIONS.md +73 -0
  46. sc_oa-0.7.0.15/tests/OpenAPI-Specification/LICENSE +201 -0
  47. sc_oa-0.7.0.15/tests/OpenAPI-Specification/MAINTAINERS.md +11 -0
  48. sc_oa-0.7.0.15/tests/OpenAPI-Specification/README.md +62 -0
  49. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/api-with-examples.json +58 -0
  50. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-expanded.json +210 -0
  51. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-minimal.json +68 -0
  52. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/common/Error.json +16 -0
  53. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/spec/NewPet.json +19 -0
  54. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/spec/Pet.json +19 -0
  55. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/spec/parameters.json +21 -0
  56. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/spec/swagger.json +146 -0
  57. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-simple.json +222 -0
  58. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore-with-external-docs.json +233 -0
  59. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json/petstore.json +153 -0
  60. {sc_oa-0.7.0.14/tests/testspecs/v2.0 → sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/json}/uber.json +370 -370
  61. {sc_oa-0.7.0.14/tests/testspecs/v2.0 → sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml}/api-with-examples.yaml +164 -164
  62. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-expanded.yaml +139 -0
  63. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-minimal.yaml +47 -0
  64. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/common/Error.yaml +10 -0
  65. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/spec/NewPet.yaml +9 -0
  66. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/spec/Pet.yaml +12 -0
  67. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/spec/parameters.yaml +16 -0
  68. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/spec/swagger.yaml +100 -0
  69. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-simple.yaml +157 -0
  70. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-with-external-docs.yaml +166 -0
  71. {sc_oa-0.7.0.14/tests/testspecs/v2.0 → sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml}/petstore.yaml +101 -101
  72. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v2.0/yaml/uber.yaml +273 -0
  73. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v3.0/api-with-examples.yaml +167 -0
  74. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v3.0/callback-example.yaml +60 -0
  75. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v3.0/link-example.yaml +203 -0
  76. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v3.0/petstore-expanded.yaml +155 -0
  77. sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples/v3.0/petstore.yaml +109 -0
  78. {sc_oa-0.7.0.14/tests/testspecs → sc_oa-0.7.0.15/tests/OpenAPI-Specification/examples}/v3.0/uspto.yaml +210 -210
  79. sc_oa-0.7.0.15/tests/OpenAPI-Specification/guidelines/EXTENSIONS.md +1 -0
  80. sc_oa-0.7.0.15/tests/OpenAPI-Specification/guidelines/v2.0/EXTENSIONS.md +92 -0
  81. sc_oa-0.7.0.15/tests/OpenAPI-Specification/guidelines/v2.0/README.md +4 -0
  82. sc_oa-0.7.0.15/tests/OpenAPI-Specification/guidelines/v2.0/REUSE.md +372 -0
  83. sc_oa-0.7.0.15/tests/OpenAPI-Specification/package.json +31 -0
  84. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/README.md +5 -0
  85. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/apiDeclaration.json +61 -0
  86. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/authorizationObject.json +59 -0
  87. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/dataType.json +132 -0
  88. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/dataTypeBase.json +81 -0
  89. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/infoObject.json +16 -0
  90. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/modelsObject.json +36 -0
  91. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/oauth2GrantType.json +57 -0
  92. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/operationObject.json +65 -0
  93. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/parameterObject.json +37 -0
  94. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/resourceListing.json +16 -0
  95. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v1.2/resourceObject.json +11 -0
  96. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v2.0/README.md +13 -0
  97. sc_oa-0.7.0.15/tests/OpenAPI-Specification/schemas/v2.0/schema.json +1607 -0
  98. sc_oa-0.7.0.15/tests/OpenAPI-Specification/versions/1.2.md +1148 -0
  99. sc_oa-0.7.0.15/tests/OpenAPI-Specification/versions/2.0.md +2298 -0
  100. sc_oa-0.7.0.15/tests/OpenAPI-Specification/versions/3.0.0.md +3441 -0
  101. sc_oa-0.7.0.15/tests/OpenAPI-Specification/versions/3.0.1.md +3380 -0
  102. sc_oa-0.7.0.15/tests/OpenAPI-Specification/versions/3.0.2.md +3412 -0
  103. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/conftest.py +99 -99
  104. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/doc/conf.py +5 -5
  105. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/doc/index.rst +27 -27
  106. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/doc/petstore.yaml +121 -121
  107. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/conftest.py +12 -12
  108. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert.py +506 -506
  109. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_operation.py +281 -281
  110. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_parameter.py +427 -427
  111. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_parameters.py +100 -100
  112. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_path.py +230 -230
  113. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_paths.py +190 -190
  114. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_request_body.py +160 -160
  115. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_request_body_formdata.py +378 -378
  116. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_response.py +417 -417
  117. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/lib2to3/test_convert_responses.py +160 -160
  118. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/conftest.py +26 -26
  119. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v2.0/api-with-examples.yaml.rst +93 -93
  120. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v2.0/petstore-expanded.yaml.rst +71 -71
  121. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v2.0/petstore.yaml.rst +52 -52
  122. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v2.0/uber.json.rst +188 -188
  123. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v2.0/uber.yaml.rst +188 -188
  124. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v3.0/api-with-examples.yaml.rst +93 -93
  125. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v3.0/petstore-expanded.yaml.rst +74 -74
  126. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v3.0/petstore.yaml.rst +52 -52
  127. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/rendered/v3.0/uspto.yaml.rst +85 -85
  128. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render.py +25 -25
  129. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_json_schema_description.py +1366 -1366
  130. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_operation.py +389 -389
  131. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_parameter.py +1021 -1021
  132. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_parameters.py +437 -437
  133. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_paths.py +460 -460
  134. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_request_body.py +106 -106
  135. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_request_body_example.py +595 -595
  136. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_response.py +755 -755
  137. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_response_example.py +636 -636
  138. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_responses.py +242 -242
  139. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/renderers/httpdomain/test_render_restructuredtext_markup.py +577 -577
  140. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/test_description.py +33 -33
  141. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/test_model.py +1271 -1228
  142. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/test_openapi.py +2832 -2757
  143. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/test_schema_utils.py +253 -253
  144. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/test_spec_examples.py +53 -53
  145. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/test_toc.py +101 -101
  146. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/testdata/foo.json +8 -8
  147. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/testdata/foo.yaml +5 -5
  148. sc_oa-0.7.0.15/tests/testspecs/v2.0/api-with-examples.yaml +164 -0
  149. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/testspecs/v2.0/petstore-expanded.yaml +139 -139
  150. sc_oa-0.7.0.15/tests/testspecs/v2.0/petstore.yaml +101 -0
  151. sc_oa-0.7.0.15/tests/testspecs/v2.0/uber.json +370 -0
  152. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/testspecs/v2.0/uber.yaml +273 -273
  153. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/testspecs/v3.0/api-with-examples.yaml +167 -167
  154. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/testspecs/v3.0/petstore-expanded.yaml +155 -155
  155. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tests/testspecs/v3.0/petstore.yaml +109 -109
  156. sc_oa-0.7.0.15/tests/testspecs/v3.0/uspto.yaml +210 -0
  157. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/tox.ini +41 -27
  158. sc_oa-0.7.0.14/sc_oa.egg-info/SOURCES.txt +0 -377
  159. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sc_oa.egg-info/dependency_links.txt +0 -0
  160. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sc_oa.egg-info/not-zip-safe +0 -0
  161. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sc_oa.egg-info/requires.txt +0 -0
  162. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sc_oa.egg-info/top_level.txt +0 -0
  163. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/locale/es_ES/LC_MESSAGES/openapi.mo +0 -0
  164. {sc_oa-0.7.0.14 → sc_oa-0.7.0.15}/sphinxcontrib/openapi/locale/fr_FR/LC_MESSAGES/openapi.mo +0 -0
@@ -1,29 +1,29 @@
1
- name: PyPI
2
-
3
- on:
4
- push:
5
- tags:
6
- - "[1-9]+.[0-9]+.[0-9]+"
7
-
8
- jobs:
9
- release:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v2
13
-
14
- - name: Set up Python 3.8
15
- uses: actions/setup-python@v1
16
- with:
17
- python-version: 3.8
18
-
19
- - name: Prepare artifacts
20
- run: |
21
- python setup.py sdist
22
-
23
- - name: Publish to PyPI
24
- env:
25
- TWINE_USERNAME: __token__
26
- TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
27
- run: |
28
- python -m pip install twine
29
- twine upload dist/*
1
+ name: PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "[1-9]+.[0-9]+.[0-9]+"
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+
14
+ - name: Set up Python 3.8
15
+ uses: actions/setup-python@v1
16
+ with:
17
+ python-version: 3.8
18
+
19
+ - name: Prepare artifacts
20
+ run: |
21
+ python setup.py sdist
22
+
23
+ - name: Publish to PyPI
24
+ env:
25
+ TWINE_USERNAME: __token__
26
+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
27
+ run: |
28
+ python -m pip install twine
29
+ twine upload dist/*
@@ -1,60 +1,60 @@
1
- name: Tests
2
-
3
- on:
4
- - push
5
- - pull_request
6
-
7
- jobs:
8
- pre-commit:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v4
12
-
13
- - name: Set up Python 3.11
14
- uses: actions/setup-python@v4
15
- with:
16
- python-version: 3.11
17
-
18
- - name: Run pre-commit
19
- run: |
20
- python -m pip install tox
21
- python -m tox -e pre-commit
22
-
23
- pytest:
24
- strategy:
25
- matrix:
26
- os: [ubuntu-latest, macos-latest]
27
- python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
28
-
29
- runs-on: ${{ matrix.os }}
30
- steps:
31
- - uses: actions/checkout@v4
32
-
33
- - name: Set up Python ${{ matrix.python-version }}
34
- uses: actions/setup-python@v4
35
- with:
36
- python-version: ${{ matrix.python-version }}
37
-
38
- - name: Pull OpenAPI specs for tests
39
- run: |
40
- git submodule update --init --recursive
41
-
42
- - name: Run pytest
43
- run: |
44
- python -m pip install tox
45
- python -m tox -e py
46
-
47
- docs:
48
- runs-on: ubuntu-latest
49
- steps:
50
- - uses: actions/checkout@v4
51
-
52
- - name: Set up Python 3.11
53
- uses: actions/setup-python@v4
54
- with:
55
- python-version: 3.11
56
-
57
- - name: Run sphinx
58
- run: |
59
- python -m pip install tox
60
- python -m tox -e docs
1
+ name: Tests
2
+
3
+ on:
4
+ - push
5
+ - pull_request
6
+
7
+ jobs:
8
+ pre-commit:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+
13
+ - name: Set up Python 3.11
14
+ uses: actions/setup-python@v4
15
+ with:
16
+ python-version: 3.11
17
+
18
+ - name: Run pre-commit
19
+ run: |
20
+ python -m pip install tox
21
+ python -m tox -e pre-commit
22
+
23
+ pytest:
24
+ strategy:
25
+ matrix:
26
+ os: [ubuntu-latest, macos-latest]
27
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
28
+
29
+ runs-on: ${{ matrix.os }}
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+
33
+ - name: Set up Python ${{ matrix.python-version }}
34
+ uses: actions/setup-python@v4
35
+ with:
36
+ python-version: ${{ matrix.python-version }}
37
+
38
+ - name: Pull OpenAPI specs for tests
39
+ run: |
40
+ git submodule update --init --recursive
41
+
42
+ - name: Run pytest
43
+ run: |
44
+ python -m pip install tox
45
+ python -m tox -e py
46
+
47
+ docs:
48
+ runs-on: ubuntu-latest
49
+ steps:
50
+ - uses: actions/checkout@v4
51
+
52
+ - name: Set up Python 3.11
53
+ uses: actions/setup-python@v4
54
+ with:
55
+ python-version: 3.11
56
+
57
+ - name: Run sphinx
58
+ run: |
59
+ python -m pip install tox
60
+ python -m tox -e docs
@@ -1,54 +1,54 @@
1
- # Backup files
2
- *.~
3
- .idea/
4
- # Byte-compiles / optimizied
5
- __pycache__/
6
- *.py[cod]
7
-
8
- # C extensions
9
- *.so
10
-
11
- # Distribution / packaging
12
- bin/
13
- build/
14
- develop-eggs/
15
- dist/
16
- eggs/
17
- .eggs/
18
- lib/
19
- lib64/
20
- parts/
21
- sdist/
22
- var/
23
- *.egg-info/
24
- .installed.cfg
25
- *.egg
26
- MANIFEST
27
-
28
- # Installer logs
29
- pip-log.txt
30
- pip-delete-this-directory.txt
31
-
32
- # Unit test / coverage reports
33
- .tox/
34
- .coverage
35
- .cache
36
- nosetests.xml
37
- coverage.xml
38
-
39
- # Sphinx documentation
40
- docs/_build/
41
-
42
- # Ignore sublime's project (for fans)
43
- .ropeproject/
44
- *.sublime-project
45
- *.sublime-workspace
46
-
47
- # Ignore VSCode folder
48
- /.vscode/
49
-
50
- # Ignore virtualenvs (who places it near)
51
- .venv/
52
-
53
- # Various shit from the OS itself
54
- .DS_Store
1
+ # Backup files
2
+ *.~
3
+ .idea/
4
+ # Byte-compiles / optimizied
5
+ __pycache__/
6
+ *.py[cod]
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ bin/
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ MANIFEST
27
+
28
+ # Installer logs
29
+ pip-log.txt
30
+ pip-delete-this-directory.txt
31
+
32
+ # Unit test / coverage reports
33
+ .tox/
34
+ .coverage
35
+ .cache
36
+ nosetests.xml
37
+ coverage.xml
38
+
39
+ # Sphinx documentation
40
+ docs/_build/
41
+
42
+ # Ignore sublime's project (for fans)
43
+ .ropeproject/
44
+ *.sublime-project
45
+ *.sublime-workspace
46
+
47
+ # Ignore VSCode folder
48
+ /.vscode/
49
+
50
+ # Ignore virtualenvs (who places it near)
51
+ .venv/
52
+
53
+ # Various shit from the OS itself
54
+ .DS_Store
@@ -1,3 +1,3 @@
1
- [submodule "OpenAPI-Specification"]
2
- path = tests/OpenAPI-Specification
3
- url = https://github.com/OAI/OpenAPI-Specification.git
1
+ [submodule "OpenAPI-Specification"]
2
+ path = tests/OpenAPI-Specification
3
+ url = https://github.com/OAI/OpenAPI-Specification.git
@@ -1 +1 @@
1
- Ihor Kalnytskyi <ihor@kalnytskyi.com> <igor@kalnitsky.org>
1
+ Ihor Kalnytskyi <ihor@kalnytskyi.com> <igor@kalnitsky.org>
@@ -1,16 +1,16 @@
1
- repos:
2
- - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v2.4.0
4
- hooks:
5
- - id: trailing-whitespace
6
- - id: end-of-file-fixer
7
- - id: check-docstring-first
8
- - id: check-json
9
- - id: check-yaml
10
- - id: debug-statements
11
-
12
- - repo: https://github.com/PyCQA/flake8
13
- rev: 3.7.9
14
- hooks:
15
- - id: flake8
16
- args: [--max-line-length=99]
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v2.4.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-docstring-first
8
+ - id: check-json
9
+ - id: check-yaml
10
+ - id: debug-statements
11
+
12
+ - repo: https://github.com/PyCQA/flake8
13
+ rev: 3.7.9
14
+ hooks:
15
+ - id: flake8
16
+ args: [--max-line-length=99]
@@ -1,76 +1,76 @@
1
- =========
2
- Changes
3
- =========
4
-
5
- Here you can see the list of changes between each 'sphinxcontrib-openapi'
6
- release.
7
-
8
- 0.7.0 (2020-05-07)
9
- ==================
10
-
11
- - Drop Python 2.7 support because it reached its end-of-life.
12
- - Add support for examples defined in schema.
13
- - Add support for 'anyOf' during example generation based on schema.
14
- - Fix loading $ref in other YAML files.
15
- - Fix freeforom (property-less) obhect schema rendering.
16
- - Respect RFC7807 in example generation.
17
- - Add new experimental OpenAPI v3 renderer.
18
-
19
- 0.6.0 (2019-12-20)
20
- ==================
21
-
22
- - Add ``include`` and ``exclude`` options to exclude certain paths out from
23
- rendering.
24
- - Generate samples for ``GET`` requests.
25
- - When rendering by groups, preserve order of groups specified in the spec.
26
-
27
- 0.5.0 (2019-09-04)
28
- ==================
29
-
30
- - Fix example generation when a byte string is used in a schema.
31
- - Support CommonMark in spec where applied. ``m2r`` package is required.
32
- - Show "required" marker near required query parameters.
33
- - Show request body properties for OpenAPI v2 specs.
34
- - CLI command to render OpenAPI spec as reStructuredText is added.
35
-
36
- 0.4.0 (2019-01-17)
37
- ==================
38
-
39
- - Add OpenAPI 3.x support.
40
- - Drop Python 3.3 support because it reached its end-of-life.
41
- - Add Python 3.7 support.
42
- - Add sample request/response generation from schema for OpenAPI v3.
43
- - Add grouping by OpenAPI tags.
44
-
45
- 0.3.2 (2017-10-05)
46
- ==================
47
-
48
- - Do not crash on Python 2.x if non-ASCII character is met.
49
-
50
- 0.3.1 (2017-05-19)
51
- ==================
52
-
53
- - Make 'sphinxcontrib-openapi' compatible with Sphinx 1.6.
54
-
55
- 0.3.0 (2017-01-29)
56
- ==================
57
-
58
- - Add ``:paths:`` option to ``openapi`` directive that allows to render
59
- only specified endpoints.
60
- - Resolve references inside list objects.
61
- - Handle common ``parameters` specified at the endpoint's root.
62
-
63
- 0.2.1 (2017-01-10)
64
- ==================
65
-
66
- - Resolve relative JSON references.
67
-
68
- 0.2.0 (2016-11-16)
69
- ==================
70
-
71
- - Resolve JSON references in the spec before attempt to generate a doc.
72
-
73
- 0.1.0 (2016-10-03)
74
- ==================
75
-
76
- - First public release.
1
+ =========
2
+ Changes
3
+ =========
4
+
5
+ Here you can see the list of changes between each 'sphinxcontrib-openapi'
6
+ release.
7
+
8
+ 0.7.0 (2020-05-07)
9
+ ==================
10
+
11
+ - Drop Python 2.7 support because it reached its end-of-life.
12
+ - Add support for examples defined in schema.
13
+ - Add support for 'anyOf' during example generation based on schema.
14
+ - Fix loading $ref in other YAML files.
15
+ - Fix freeforom (property-less) obhect schema rendering.
16
+ - Respect RFC7807 in example generation.
17
+ - Add new experimental OpenAPI v3 renderer.
18
+
19
+ 0.6.0 (2019-12-20)
20
+ ==================
21
+
22
+ - Add ``include`` and ``exclude`` options to exclude certain paths out from
23
+ rendering.
24
+ - Generate samples for ``GET`` requests.
25
+ - When rendering by groups, preserve order of groups specified in the spec.
26
+
27
+ 0.5.0 (2019-09-04)
28
+ ==================
29
+
30
+ - Fix example generation when a byte string is used in a schema.
31
+ - Support CommonMark in spec where applied. ``m2r`` package is required.
32
+ - Show "required" marker near required query parameters.
33
+ - Show request body properties for OpenAPI v2 specs.
34
+ - CLI command to render OpenAPI spec as reStructuredText is added.
35
+
36
+ 0.4.0 (2019-01-17)
37
+ ==================
38
+
39
+ - Add OpenAPI 3.x support.
40
+ - Drop Python 3.3 support because it reached its end-of-life.
41
+ - Add Python 3.7 support.
42
+ - Add sample request/response generation from schema for OpenAPI v3.
43
+ - Add grouping by OpenAPI tags.
44
+
45
+ 0.3.2 (2017-10-05)
46
+ ==================
47
+
48
+ - Do not crash on Python 2.x if non-ASCII character is met.
49
+
50
+ 0.3.1 (2017-05-19)
51
+ ==================
52
+
53
+ - Make 'sphinxcontrib-openapi' compatible with Sphinx 1.6.
54
+
55
+ 0.3.0 (2017-01-29)
56
+ ==================
57
+
58
+ - Add ``:paths:`` option to ``openapi`` directive that allows to render
59
+ only specified endpoints.
60
+ - Resolve references inside list objects.
61
+ - Handle common ``parameters` specified at the endpoint's root.
62
+
63
+ 0.2.1 (2017-01-10)
64
+ ==================
65
+
66
+ - Resolve relative JSON references.
67
+
68
+ 0.2.0 (2016-11-16)
69
+ ==================
70
+
71
+ - Resolve JSON references in the spec before attempt to generate a doc.
72
+
73
+ 0.1.0 (2016-10-03)
74
+ ==================
75
+
76
+ - First public release.
@@ -1,23 +1,23 @@
1
- Copyright (c) 2016, Igor Kalnitsky <igor@kalnitsky.org>.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ Copyright (c) 2016, Igor Kalnitsky <igor@kalnitsky.org>.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,12 +1,12 @@
1
- include README.rst LICENSE CHANGES
2
- include tox.ini
3
-
4
- recursive-include docs *
5
- recursive-include tests *
6
- recursive-include sphinxcontrib *.pot *.po *.mo
7
-
8
- prune docs/_build
9
-
10
- recursive-exclude * __pycache__
11
- recursive-exclude * *.py[co]
12
- recursive-exclude * .DS_Store
1
+ include README.rst LICENSE CHANGES
2
+ include tox.ini
3
+
4
+ recursive-include docs *
5
+ recursive-include tests *
6
+ recursive-include sphinxcontrib *.pot *.po *.mo
7
+
8
+ prune docs/_build
9
+
10
+ recursive-exclude * __pycache__
11
+ recursive-exclude * *.py[co]
12
+ recursive-exclude * .DS_Store
@@ -1,36 +1,37 @@
1
- Metadata-Version: 2.1
2
- Name: sc-oa
3
- Version: 0.7.0.14
4
- Summary: Fork of the OpenAPI (fka Swagger) spec renderer for Sphinx
5
- Home-page: https://github.com/olivier-heurtier/sphinxcontrib-openapi/tree/mymaster
6
- Author: Ihor Kalnytskyi
7
- Olivier Heurtier
8
- Author-email: ihor@kalnytskyi.com
9
- License: BSD
10
- Classifier: Topic :: Documentation
11
- Classifier: Topic :: Documentation :: Sphinx
12
- Classifier: License :: OSI Approved :: BSD License
13
- Classifier: Environment :: Console
14
- Classifier: Intended Audience :: Developers
15
- Classifier: Operating System :: OS Independent
16
- Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3 :: Only
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
- Classifier: Programming Language :: Python :: 3.10
22
- Classifier: Programming Language :: Python :: 3.11
23
- Classifier: Programming Language :: Python :: 3.12
24
- Classifier: Programming Language :: Python :: Implementation :: CPython
25
- Classifier: Framework :: Sphinx
26
- Classifier: Framework :: Sphinx :: Extension
27
- Requires-Python: >=3.8
28
- License-File: LICENSE
29
- Requires-Dist: sphinx
30
- Requires-Dist: sphinxcontrib-httpdomain
31
- Requires-Dist: PyYAML
32
- Requires-Dist: jsonschema
33
- Requires-Dist: m2r2
34
- Requires-Dist: picobox
35
- Requires-Dist: deepmerge
36
- Requires-Dist: setuptools
1
+ Metadata-Version: 2.4
2
+ Name: sc-oa
3
+ Version: 0.7.0.15
4
+ Summary: Fork of the OpenAPI (fka Swagger) spec renderer for Sphinx
5
+ Home-page: https://github.com/olivier-heurtier/sphinxcontrib-openapi/tree/mymaster
6
+ Author: Ihor Kalnytskyi
7
+ Olivier Heurtier
8
+ Author-email: ihor@kalnytskyi.com
9
+ License: BSD
10
+ Classifier: Topic :: Documentation
11
+ Classifier: Topic :: Documentation :: Sphinx
12
+ Classifier: License :: OSI Approved :: BSD License
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: Implementation :: CPython
25
+ Classifier: Framework :: Sphinx
26
+ Classifier: Framework :: Sphinx :: Extension
27
+ Requires-Python: >=3.8
28
+ License-File: LICENSE
29
+ Requires-Dist: sphinx
30
+ Requires-Dist: sphinxcontrib-httpdomain
31
+ Requires-Dist: PyYAML
32
+ Requires-Dist: jsonschema
33
+ Requires-Dist: m2r2
34
+ Requires-Dist: picobox
35
+ Requires-Dist: deepmerge
36
+ Requires-Dist: setuptools
37
+ Dynamic: license-file