Skip to content

Commit 3caccba

Browse files
chore: update tests
1 parent c55d90a commit 3caccba

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

components.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,6 +1796,10 @@ components:
17961796
additionalProperties:
17971797
$ref: "#/components/schemas/simpleObjectCamelCase"
17981798
example: [{"mapElem1": "...", "mapElem2": "..."}, {"mapElem1": "...", "mapElem2": "..."}]
1799+
mapAnyValue:
1800+
type: object
1801+
additionalProperties: true
1802+
example: { "mapElemArray": ["array-test"], "mapElemBool": true, "mapElemNumber": 123, "mapElemObject": { "property": "property-test" }, "mapElemString": "string-test" }
17991803
mapArrValue:
18001804
type: object
18011805
additionalProperties:

test.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3504,6 +3504,29 @@ paths:
35043504
additionalProperties:
35053505
$ref: "components.yaml#/components/schemas/simpleObjectCamelCase"
35063506
example: { "mapElem1" : {"subMapElem1": "...", "subMapElem2": "..."}, "mapElem2" : {"subMapElem1": "...", "subMapElem2": "..."}}
3507+
/requestbody#mapOfAny:
3508+
post:
3509+
operationId: requestBodyPostApplicationJsonMapOfAny
3510+
tags:
3511+
- requestBodies
3512+
servers:
3513+
- url: http://localhost:35456
3514+
requestBody:
3515+
content:
3516+
application/json:
3517+
schema:
3518+
$ref: "components.yaml#/components/schemas/mapAnyValue"
3519+
required: true
3520+
responses:
3521+
"200":
3522+
description: OK
3523+
content:
3524+
application/json:
3525+
schema:
3526+
title: res
3527+
type: object
3528+
additionalProperties: true
3529+
example: { "mapElemArray": ["array-test"], "mapElemBool": true, "mapElemNumber": 123, "mapElemObject": { "property": "property-test" }, "mapElemString": "string-test" }
35073530
/requestbody#mapOfArrays:
35083531
post:
35093532
operationId: requestBodyPostApplicationJsonMapOfArray

0 commit comments

Comments
 (0)