This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit 2ce652a
authored
v2 adds security schemes (#135)
* Adds generateSecuritySchemes method, unfinished
* Adds security_schemes.py main module
* Updates java classes that store security scheme data
* Adds CodegenSecurityRequirement
* Adds security to operation
* Uses fromSecurityRequirement in operation
* Fixes java creation of securityRequiremnts
* Sample regen, breaks auth
* renders security imports in operations
* Removes extra newlines by imports
* Adds java code to generate security schemes
* Fixes security schemes init file
* Gnerates one file for each component security scheme
* Simplifies java file generation
* Uses generateXs in generateHeader
* Uses generateXs in parameter generation
* Uses generateXs in all locations
* Dedents some code
* Adds description to security scheme classes
* Adds full rendering of component security scheme
* Adds SecurityRequirementObject
* Adds security schemes section to readme
* Adds some java code to standardize docs generation for components
* Generates schema docs using new method
* Removes header doc methods and properties
* Removes parameter docs methods and properties
* Simplifies request body doc generation
* Simplifes response doc generation
* Adds doc generation for security schemes
* Updates securty scheme docs
* Fixes section link for security schemes
* Updates SecurityRequiremntObject
* Isolates auth application to security scheme class
* Fixes readme link for component schemas, fixes crypto install
* Fixes dataclass prop order, makes some base classes private
* Fixes security shcem class defaults
* Fixes two tests
* Removes commented out filtering code
* Fixes basic auth test
* Adds auth to fix test
* Fixes last broken test
* Updates doc schema ref links
* Adds __SecuritySchemeBase
* Fixes java test
* Samples regenerated
* Samples regen
* Improves endpoint docs
* Adds total false to the auth info class definition
* CHanges bearer_token to access_token
* Removes auth info from the Configuration docstring
* Adds security into to endpoint docs
* Samples updated1 parent 5ddc92e commit 2ce652a
1,107 files changed
Lines changed: 12309 additions & 12016 deletions
File tree
- modules/openapi-json-schema-generator/src
- main
- java/org/openapijsonschematools/codegen
- languages
- model
- utils
- resources/python
- components
- headers
- parameters
- request_bodies
- responses
- schemas
- security_schemes
- paths/path/verb
- test
- java/org/openapijsonschematools/codegen
- resources/3_0/python
- samples/openapi3/client
- 3_0_3_unit_test/python
- .openapi-generator
- docs
- apis/tags
- _not_api
- additional_properties_api
- all_of_api
- any_of_api
- content_type_json_api
- default_api
- enum_api
- format_api
- items_api
- max_items_api
- max_length_api
- max_properties_api
- maximum_api
- min_items_api
- min_length_api
- min_properties_api
- minimum_api
- multiple_of_api
- one_of_api
- operation_request_body_api
- path_post_api
- pattern_api
- properties_api
- ref_api
- required_api
- response_content_content_type_schema_api
- type_api
- unique_items_api
- components/schema
- src/unit_test_api
- features/nonCompliantUseDiscriminatorIfCompositionFails/python
- .openapi-generator
- docs
- apis/tags/default_api
- components/schema
- src/this_package
- petstore/python
- .openapi-generator
- docs
- apis/tags
- another_fake_api
- default_api
- fake_api
- fake_classname_tags123_api
- pet_api
- store_api
- user_api
- components
- headers
- parameters
- request_bodies
- schema
- security_schemes
- src/petstore_api
- apis
- paths
- tags
- components/security_schemes
- paths
- fake_classname_test/patch
- fake_multiple_securities
- get
- responses
- response_200
- content
- application_json
- fake_pet_id_upload_image_with_required_file/post
- fake
- delete
- post
- pet_find_by_status/get
- pet_find_by_tags/get
- pet_pet_id_upload_image/post
- pet_pet_id
- delete
- get
- post
- pet
- post
- put
- store_inventory/get
- tests_manual
- test_paths
- test_fake
- test_pet_pet_id
- test/test_paths/test_fake_multiple_securities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 92 | | |
98 | 93 | | |
99 | 94 | | |
100 | 95 | | |
101 | 96 | | |
102 | 97 | | |
103 | | - | |
104 | | - | |
105 | 98 | | |
106 | 99 | | |
107 | 100 | | |
| |||
144 | 137 | | |
145 | 138 | | |
146 | 139 | | |
147 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
148 | 143 | | |
149 | 144 | | |
150 | 145 | | |
| |||
168 | 163 | | |
169 | 164 | | |
170 | 165 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 166 | + | |
176 | 167 | | |
177 | 168 | | |
178 | 169 | | |
179 | 170 | | |
180 | 171 | | |
181 | | - | |
182 | | - | |
183 | 172 | | |
184 | 173 | | |
185 | 174 | | |
186 | 175 | | |
187 | 176 | | |
188 | 177 | | |
189 | | - | |
190 | | - | |
191 | 178 | | |
192 | 179 | | |
193 | 180 | | |
| |||
212 | 199 | | |
213 | 200 | | |
214 | 201 | | |
215 | | - | |
216 | | - | |
217 | 202 | | |
218 | 203 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | 204 | | |
226 | 205 | | |
227 | 206 | | |
228 | 207 | | |
229 | 208 | | |
230 | 209 | | |
231 | | - | |
| 210 | + | |
232 | 211 | | |
233 | 212 | | |
234 | 213 | | |
| |||
255 | 234 | | |
256 | 235 | | |
257 | 236 | | |
| 237 | + | |
| 238 | + | |
258 | 239 | | |
259 | 240 | | |
260 | 241 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
238 | 242 | | |
239 | 243 | | |
240 | 244 | | |
241 | | - | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
0 commit comments