Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit fd5d4f6

Browse files
authored
v2 updates generator features (#142)
* Updates data types * Schema features updated * Adds missing data types to python docs * Adds more DocumentationFeatures * Updates security features * Updates reserved words * Adds components features * Adds components features * Updates global features * Fixes java tests, global features updated * Updates schema features * Fixes instantiationTypes * Removes importMapping * Samples and docs regenerated * Fixes python test
1 parent 2e43d9a commit fd5d4f6

File tree

38 files changed

+945
-1080
lines changed

38 files changed

+945
-1080
lines changed

docs/generators/java.md

Lines changed: 81 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -103,29 +103,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
103103
|x-webclient-blocking|Specifies if method for specific operation should be blocking or non-blocking(ex: return `Mono<T>/Flux<T>` or `return T/List<T>/Set<T>` & execute `.block()` inside generated method)|OPERATION|false
104104

105105

106-
## IMPORT MAPPING
107-
108-
| Type/Alias | Imports |
109-
| ---------- | ------- |
110-
|Array|java.util.List|
111-
|ArrayList|java.util.ArrayList|
112-
|BigDecimal|java.math.BigDecimal|
113-
|Date|java.util.Date|
114-
|DateTime|org.joda.time.*|
115-
|File|java.io.File|
116-
|HashMap|java.util.HashMap|
117-
|LinkedHashSet|java.util.LinkedHashSet|
118-
|List|java.util.*|
119-
|LocalDate|org.joda.time.*|
120-
|LocalDateTime|org.joda.time.*|
121-
|LocalTime|org.joda.time.*|
122-
|Map|java.util.Map|
123-
|Set|java.util.*|
124-
|Timestamp|java.sql.Timestamp|
125-
|URI|java.net.URI|
126-
|UUID|java.util.UUID|
127-
128-
129106
## INSTANTIATION TYPES
130107

131108
| Type/Alias | Instantiated By |
@@ -237,15 +214,30 @@ These options may be applied as additional-properties (cli) or configOptions (pl
237214
|UserAgent|✗|ToolingExtension
238215
|MockServer|✗|ToolingExtension
239216

217+
### Components Feature
218+
| Name | Supported | Defined By |
219+
| ---- | --------- | ---------- |
220+
|schemas|✗|OAS3
221+
|responses|✗|OAS3
222+
|parameters|✗|OAS3
223+
|examples|✗|OAS3
224+
|requestBodies|✗|OAS3
225+
|headers|✗|OAS3
226+
|securitySchemes|✗|OAS3
227+
|links|✗|OAS3
228+
|callbacks|✗|OAS3
229+
|pathItems|✗|OAS3
230+
240231
### Data Type Feature
241232
| Name | Supported | Defined By |
242233
| ---- | --------- | ---------- |
243234
|Custom|✗|OAS2,OAS3
244235
|Int32|✓|OAS2,OAS3
245236
|Int64|✓|OAS2,OAS3
237+
|Integer|✗|OAS2,OAS3
246238
|Float|✓|OAS2,OAS3
247239
|Double|✓|OAS2,OAS3
248-
|Decimal|✓|ToolingExtension
240+
|Number|✗|OAS2,OAS3
249241
|String|✓|OAS2,OAS3
250242
|Byte|✓|OAS2,OAS3
251243
|Binary|✓|OAS2,OAS3
@@ -254,82 +246,100 @@ These options may be applied as additional-properties (cli) or configOptions (pl
254246
|DateTime|✓|OAS2,OAS3
255247
|Password|✓|OAS2,OAS3
256248
|File|✓|OAS2
257-
|Uuid||
249+
|Uuid|✗|OAS2,OAS3
258250
|Array|✓|OAS2,OAS3
259251
|Null|✗|OAS3
260252
|AnyType|✗|OAS2,OAS3
261253
|Object|✓|OAS2,OAS3
262-
|Maps|✓|ToolingExtension
263-
|CollectionFormat|✓|OAS2
264-
|CollectionFormatMulti|✓|OAS2
265254
|Enum|✓|OAS2,OAS3
266-
|ArrayOfEnum|✓|ToolingExtension
267-
|ArrayOfModel|✓|ToolingExtension
268-
|ArrayOfCollectionOfPrimitives|✓|ToolingExtension
269-
|ArrayOfCollectionOfModel|✓|ToolingExtension
270-
|ArrayOfCollectionOfEnum|✓|ToolingExtension
271-
|MapOfEnum|✓|ToolingExtension
272-
|MapOfModel|✓|ToolingExtension
273-
|MapOfCollectionOfPrimitives|✓|ToolingExtension
274-
|MapOfCollectionOfModel|✓|ToolingExtension
275-
|MapOfCollectionOfEnum|✓|ToolingExtension
276255

277256
### Documentation Feature
278257
| Name | Supported | Defined By |
279258
| ---- | --------- | ---------- |
280259
|Readme|✓|ToolingExtension
281-
|Model|✓|ToolingExtension
260+
|Servers|✗|OAS3
261+
|Security|✗|OAS2,OAS3
262+
|ComponentSchemas|✓|OAS3
263+
|ComponentResponses|✗|OAS3
264+
|ComponentParameters|✗|OAS3
265+
|ComponentRequestBodies|✗|OAS3
266+
|ComponentHeaders|✗|OAS3
267+
|ComponentSecuritySchemes|✗|OAS3
268+
|ComponentLinks|✗|OAS3
269+
|ComponentCallbacks|✗|OAS3
270+
|ComponentPathItems|✗|OAS3
282271
|Api|✓|ToolingExtension
283272

284273
### Global Feature
285274
| Name | Supported | Defined By |
286275
| ---- | --------- | ---------- |
287-
|Host|✓|OAS2,OAS3
288-
|BasePath|✓|OAS2,OAS3
289276
|Info|✓|OAS2,OAS3
290-
|Schemes|✗|OAS2,OAS3
291-
|PartialSchemes|✓|OAS2,OAS3
292-
|Consumes|✓|OAS2
293-
|Produces|✓|OAS2
294-
|ExternalDocumentation|✓|OAS2,OAS3
295-
|Examples|✓|OAS2,OAS3
296-
|XMLStructureDefinitions|✗|OAS2,OAS3
297-
|MultiServer|✗|OAS3
298-
|ParameterizedServer|✓|OAS3
299-
|ParameterStyling|✗|OAS3
300-
|Callbacks|✗|OAS3
301-
|LinkObjects|✗|OAS3
277+
|Servers|✗|OAS3
278+
|Paths|✗|OAS2,OAS3
279+
|Webhooks|✗|OAS3
280+
|Components|✓|OAS3
281+
|Security|✗|OAS2,OAS3
282+
|Tags|✗|OAS2,OAS3
283+
|ExternalDocs|✗|OAS2,OAS3
302284

303285
### Parameter Feature
304286
| Name | Supported | Defined By |
305287
| ---- | --------- | ---------- |
306-
|Path|✓|OAS2,OAS3
307-
|Query|✓|OAS2,OAS3
308-
|Header|✓|OAS2,OAS3
309-
|Body|✓|OAS2
310-
|FormUnencoded|✓|OAS2
311-
|FormMultipart|✓|OAS2
312-
|Cookie|✓|OAS3
288+
|Name|✗|OAS2,OAS3
289+
|Required|✗|OAS2,OAS3
290+
|In_Path|✓|OAS2,OAS3
291+
|In_Query|✓|OAS2,OAS3
292+
|In_Header|✓|OAS2,OAS3
293+
|In_Cookie|✓|OAS3
294+
|Style_Matrix|✗|OAS3
295+
|Style_Label|✗|OAS3
296+
|Style_Form|✗|OAS3
297+
|Style_Simple|✗|OAS3
298+
|Style_SpaceDelimited|✗|OAS3
299+
|Style_PipeDelimited|✗|OAS3
300+
|Style_DeepObject|✗|OAS3
301+
|Explode|✗|OAS3
302+
|Schema|✗|OAS3
303+
|Content|✗|OAS3
313304

314-
### Schema Support Feature
305+
### Schema Feature
315306
| Name | Supported | Defined By |
316307
| ---- | --------- | ---------- |
317-
|Simple|✓|OAS2,OAS3
318-
|Composite|✓|OAS2,OAS3
319-
|Polymorphism|✗|OAS2,OAS3
320-
|Union|✗|OAS3
321-
|allOf|✗|OAS2,OAS3
322-
|anyOf|✗|OAS3
323-
|oneOf|✗|OAS3
324-
|not|✗|OAS3
308+
|AdditionalProperties|✗|OAS2,OAS3
309+
|AllOf|✗|OAS2,OAS3
310+
|AnyOf|✗|OAS3
311+
|Discriminator|✓|OAS2,OAS3
312+
|Enum|✓|OAS2,OAS3
313+
|ExclusiveMinimum|✓|OAS2,OAS3
314+
|ExclusiveMaximum|✓|OAS2,OAS3
315+
|Format|✓|OAS2,OAS3
316+
|Items|✓|OAS2,OAS3
317+
|MaxItems|✓|OAS2,OAS3
318+
|MaxLength|✓|OAS2,OAS3
319+
|MaxProperties|✓|OAS2,OAS3
320+
|Maximum|✓|OAS2,OAS3
321+
|MinItems|✓|OAS2,OAS3
322+
|MinLength|✓|OAS2,OAS3
323+
|MinProperties|✓|OAS2,OAS3
324+
|Minimum|✓|OAS2,OAS3
325+
|MultipleOf|✓|OAS2,OAS3
326+
|Not|✗|OAS3
327+
|Nullable|✗|OAS3
328+
|OneOf|✗|OAS3
329+
|Pattern|✓|OAS2,OAS3
330+
|Properties|✓|OAS2,OAS3
331+
|Required|✓|OAS2,OAS3
332+
|Type|✓|OAS2,OAS3
333+
|UniqueItems|✓|OAS2,OAS3
334+
|Xml|✗|OAS2,OAS3
325335

326336
### Security Feature
327337
| Name | Supported | Defined By |
328338
| ---- | --------- | ---------- |
329-
|BasicAuth|✗|OAS2,OAS3
339+
|HTTP_Basic|✗|OAS2,OAS3
330340
|ApiKey|✗|OAS2,OAS3
331341
|OpenIDConnect|✗|OAS3
332-
|BearerToken|✗|OAS3
342+
|HTTP_Bearer|✗|OAS2,OAS3
333343
|OAuth2_Implicit|✗|OAS2,OAS3
334344
|OAuth2_Password|✗|OAS2,OAS3
335345
|OAuth2_ClientCredentials|✗|OAS2,OAS3

0 commit comments

Comments
 (0)