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

Commit 2c750d0

Browse files
authored
Kotlin docs updated (#439)
1 parent a69a3b5 commit 2c750d0

File tree

2 files changed

+53
-53
lines changed

2 files changed

+53
-53
lines changed

docs/generators/kotlin.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ These options may be applied as additional-properties (cli) or configOptions (pl
171171
| Name | Supported | Defined By |
172172
| ---- | --------- | ---------- |
173173
|schemas|✓|OAS3
174-
|responses||OAS3
175-
|parameters||OAS3
174+
|responses||OAS3
175+
|parameters||OAS3
176176
|examples|✗|OAS3
177-
|requestBodies||OAS3
178-
|headers||OAS3
179-
|securitySchemes||OAS3
177+
|requestBodies||OAS3
178+
|headers||OAS3
179+
|securitySchemes||OAS3
180180
|links|✗|OAS3
181181
|callbacks|✗|OAS3
182182
|pathItems|✗|OAS3
@@ -211,39 +211,39 @@ These options may be applied as additional-properties (cli) or configOptions (pl
211211
| ---- | --------- | ---------- |
212212
|Readme|✓|ToolingExtension
213213
|Servers|✓|OAS3
214-
|Security||OAS2,OAS3
214+
|Security||OAS2,OAS3
215215
|ComponentSchemas|✓|OAS3
216-
|ComponentResponses||OAS3
217-
|ComponentParameters||OAS3
218-
|ComponentRequestBodies||OAS3
219-
|ComponentHeaders||OAS3
220-
|ComponentSecuritySchemes||OAS3
216+
|ComponentResponses||OAS3
217+
|ComponentParameters||OAS3
218+
|ComponentRequestBodies||OAS3
219+
|ComponentHeaders||OAS3
220+
|ComponentSecuritySchemes||OAS3
221221
|ComponentLinks|✗|OAS3
222222
|ComponentCallbacks|✗|OAS3
223223
|ComponentPathItems|✗|OAS3
224-
|Api||ToolingExtension
224+
|Api||ToolingExtension
225225

226226
### Global Feature
227227
| Name | Supported | Defined By |
228228
| ---- | --------- | ---------- |
229-
|Info||OAS2,OAS3
229+
|Info||OAS2,OAS3
230230
|Servers|✓|OAS3
231-
|Paths||OAS2,OAS3
231+
|Paths||OAS2,OAS3
232232
|Webhooks|✗|OAS3
233233
|Components|✓|OAS3
234-
|Security||OAS2,OAS3
234+
|Security||OAS2,OAS3
235235
|Tags|✗|OAS2,OAS3
236236
|ExternalDocs|✗|OAS2,OAS3
237237

238238
### Operation Feature
239239
| Name | Supported | Defined By |
240240
| ---- | --------- | ---------- |
241-
|Responses_HttpStatusCode||OAS3
242-
|Responses_RangedResponseCodes||OAS3
243-
|Responses_Default||OAS3
244-
|Responses_RedirectionResponse||OAS3
245-
|Security||OAS2,OAS3
246-
|Servers||OAS3
241+
|Responses_HttpStatusCode||OAS3
242+
|Responses_RangedResponseCodes||OAS3
243+
|Responses_Default||OAS3
244+
|Responses_RedirectionResponse||OAS3
245+
|Security||OAS2,OAS3
246+
|Servers||OAS3
247247

248248
### Parameter Feature
249249
| Name | Supported | Defined By |
@@ -315,10 +315,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl
315315
### Security Feature
316316
| Name | Supported | Defined By |
317317
| ---- | --------- | ---------- |
318-
|HTTP_Basic||OAS2,OAS3
319-
|ApiKey||OAS2,OAS3
318+
|HTTP_Basic||OAS2,OAS3
319+
|ApiKey||OAS2,OAS3
320320
|OpenIDConnect|✗|OAS3
321-
|HTTP_Bearer||OAS2,OAS3
321+
|HTTP_Bearer||OAS2,OAS3
322322
|OAuth2_Implicit|✗|OAS2,OAS3
323323
|OAuth2_Password|✗|OAS2,OAS3
324324
|OAuth2_ClientCredentials|✗|OAS2,OAS3
@@ -327,7 +327,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
327327
### Wire Format Feature
328328
| Name | Supported | Defined By |
329329
| ---- | --------- | ---------- |
330-
|JSON||OAS2,OAS3
330+
|JSON||OAS2,OAS3
331331
|XML|✗|OAS2,OAS3
332332
|PROTOBUF|✗|ToolingExtension
333333
|Custom|✗|OAS2,OAS3

src/main/java/org/openapijsonschematools/codegen/generators/KotlinClientGenerator.java

+28-28
Original file line numberDiff line numberDiff line change
@@ -228,42 +228,42 @@ public KotlinClientGenerator(GeneratorSettings generatorSettings, WorkflowSettin
228228
.includeDocumentationFeatures(
229229
DocumentationFeature.Readme,
230230
DocumentationFeature.Servers,
231-
DocumentationFeature.Security,
232-
DocumentationFeature.ComponentSchemas,
233-
DocumentationFeature.ComponentSecuritySchemes,
234-
DocumentationFeature.ComponentRequestBodies,
235-
DocumentationFeature.ComponentResponses,
236-
DocumentationFeature.ComponentHeaders,
237-
DocumentationFeature.ComponentParameters,
238-
DocumentationFeature.Api
231+
// DocumentationFeature.Security,
232+
DocumentationFeature.ComponentSchemas
233+
// DocumentationFeature.ComponentSecuritySchemes,
234+
// DocumentationFeature.ComponentRequestBodies,
235+
// DocumentationFeature.ComponentResponses,
236+
// DocumentationFeature.ComponentHeaders,
237+
// DocumentationFeature.ComponentParameters,
238+
// DocumentationFeature.Api
239239
)
240240
.includeGlobalFeatures(
241241
GlobalFeature.Components,
242-
GlobalFeature.Servers,
243-
GlobalFeature.Security,
244-
GlobalFeature.Paths,
245-
GlobalFeature.Info
242+
GlobalFeature.Servers
243+
// GlobalFeature.Security,
244+
// GlobalFeature.Paths,
245+
// GlobalFeature.Info
246246
)
247247
.includeComponentsFeatures(
248-
ComponentsFeature.schemas,
249-
ComponentsFeature.securitySchemes,
250-
ComponentsFeature.requestBodies,
251-
ComponentsFeature.responses,
252-
ComponentsFeature.headers,
253-
ComponentsFeature.parameters
248+
ComponentsFeature.schemas
249+
// ComponentsFeature.securitySchemes,
250+
// ComponentsFeature.requestBodies,
251+
// ComponentsFeature.responses,
252+
// ComponentsFeature.headers,
253+
// ComponentsFeature.parameters
254254
)
255255
.includeSecurityFeatures(
256-
SecurityFeature.ApiKey,
257-
SecurityFeature.HTTP_Basic,
258-
SecurityFeature.HTTP_Bearer
256+
// SecurityFeature.ApiKey,
257+
// SecurityFeature.HTTP_Basic,
258+
// SecurityFeature.HTTP_Bearer
259259
)
260260
.includeOperationFeatures(
261-
OperationFeature.Security,
262-
OperationFeature.Servers,
263-
OperationFeature.Responses_Default,
264-
OperationFeature.Responses_HttpStatusCode,
265-
OperationFeature.Responses_RangedResponseCodes,
266-
OperationFeature.Responses_RedirectionResponse
261+
// OperationFeature.Security,
262+
// OperationFeature.Servers,
263+
// OperationFeature.Responses_Default,
264+
// OperationFeature.Responses_HttpStatusCode,
265+
// OperationFeature.Responses_RangedResponseCodes,
266+
// OperationFeature.Responses_RedirectionResponse
267267
)
268268
.includeSchemaFeatures(
269269
SchemaFeature.AdditionalProperties,
@@ -310,7 +310,7 @@ public KotlinClientGenerator(GeneratorSettings generatorSettings, WorkflowSettin
310310
SchemaFeature.UniqueItems
311311
)
312312
.includeWireFormatFeatures(
313-
WireFormatFeature.JSON
313+
// WireFormatFeature.JSON
314314
)
315315
.build();
316316
public static final GeneratorMetadata generatorMetadata = GeneratorMetadata.newBuilder()

0 commit comments

Comments
 (0)