mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-06 01:06:12 +00:00
use map/array model class only if it is generated (#17612)
* fix * tests * generate samples * refactor
This commit is contained in:
@@ -971,6 +971,25 @@ paths:
|
||||
- fake
|
||||
x-content-type: application/json
|
||||
x-accepts: application/json
|
||||
/fake/stringMap-reference:
|
||||
post:
|
||||
description: ""
|
||||
operationId: testStringMapReference
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/MapOfString'
|
||||
description: request body
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
description: successful operation
|
||||
summary: test referenced string map
|
||||
tags:
|
||||
- fake
|
||||
x-content-type: application/json
|
||||
x-accepts: application/json
|
||||
/fake/inline-additionalProperties:
|
||||
post:
|
||||
description: ""
|
||||
@@ -1798,6 +1817,11 @@ components:
|
||||
additionalProperties: true
|
||||
description: A schema consisting only of additional properties
|
||||
type: object
|
||||
MapOfString:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: A schema consisting only of additional properties of type string
|
||||
type: object
|
||||
OuterEnum:
|
||||
enum:
|
||||
- placed
|
||||
|
||||
Reference in New Issue
Block a user