Skip to content

Commit 6433b65

Browse files
committed
add testcases to openapi specs
1 parent ca0d4ea commit 6433b65

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

modules/openapi-generator/src/test/resources/3_0/java/native/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,3 +2240,39 @@ components:
22402240
deprecated: true
22412241
items:
22422242
$ref: '#/components/schemas/Bar'
2243+
LongId:
2244+
description: "Id as long"
2245+
type: integer
2246+
format: int64
2247+
Weight:
2248+
description: "Weight as float"
2249+
format: float
2250+
type: number
2251+
Height:
2252+
description: "Height as double"
2253+
format: double
2254+
type: number
2255+
AllOfRefToLong:
2256+
description: "Object with allOf ref to long"
2257+
type: object
2258+
properties:
2259+
id:
2260+
allOf:
2261+
- $ref: '#/components/schemas/LongId'
2262+
default: 10
2263+
AllOfRefToFloat:
2264+
description: "Object with allOf ref to float"
2265+
type: object
2266+
properties:
2267+
weight:
2268+
allOf:
2269+
- $ref: '#/components/schemas/Weight'
2270+
default: 7.89
2271+
AllOfRefToDouble:
2272+
description: "Object with allOf ref to double"
2273+
type: object
2274+
properties:
2275+
height:
2276+
allOf:
2277+
- $ref: '#/components/schemas/Height'
2278+
default: 32.1

modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,3 +2830,39 @@ components:
28302830
[ "h3", "Header 3" ],
28312831
[ "h4", "Header 4" ]
28322832
]
2833+
LongId:
2834+
description: "Id as long"
2835+
type: integer
2836+
format: int64
2837+
Weight:
2838+
description: "Weight as float"
2839+
format: float
2840+
type: number
2841+
Height:
2842+
description: "Height as double"
2843+
format: double
2844+
type: number
2845+
AllOfRefToLong:
2846+
description: "Object with allOf ref to long"
2847+
type: object
2848+
properties:
2849+
id:
2850+
allOf:
2851+
- $ref: '#/components/schemas/LongId'
2852+
default: 10
2853+
AllOfRefToFloat:
2854+
description: "Object with allOf ref to float"
2855+
type: object
2856+
properties:
2857+
weight:
2858+
allOf:
2859+
- $ref: '#/components/schemas/Weight'
2860+
default: 7.89
2861+
AllOfRefToDouble:
2862+
description: "Object with allOf ref to double"
2863+
type: object
2864+
properties:
2865+
height:
2866+
allOf:
2867+
- $ref: '#/components/schemas/Height'
2868+
default: 32.1

modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,3 +2231,39 @@ components:
22312231
deprecated: true
22322232
items:
22332233
$ref: '#/components/schemas/Bar'
2234+
LongId:
2235+
description: "Id as long"
2236+
type: integer
2237+
format: int64
2238+
Weight:
2239+
description: "Weight as float"
2240+
format: float
2241+
type: number
2242+
Height:
2243+
description: "Height as double"
2244+
format: double
2245+
type: number
2246+
AllOfRefToLong:
2247+
description: "Object with allOf ref to long"
2248+
type: object
2249+
properties:
2250+
id:
2251+
allOf:
2252+
- $ref: '#/components/schemas/LongId'
2253+
default: 10
2254+
AllOfRefToFloat:
2255+
description: "Object with allOf ref to float"
2256+
type: object
2257+
properties:
2258+
weight:
2259+
allOf:
2260+
- $ref: '#/components/schemas/Weight'
2261+
default: 7.89
2262+
AllOfRefToDouble:
2263+
description: "Object with allOf ref to double"
2264+
type: object
2265+
properties:
2266+
height:
2267+
allOf:
2268+
- $ref: '#/components/schemas/Height'
2269+
default: 32.1

0 commit comments

Comments
 (0)