forked from loafle/openapi-generator-original
Add "nullable" to fake yaml
This commit is contained in:
parent
b63242219c
commit
7037ca88ee
@ -1025,6 +1025,18 @@ paths:
|
|||||||
format: binary
|
format: binary
|
||||||
required:
|
required:
|
||||||
- requiredFile
|
- requiredFile
|
||||||
|
/fake/health:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- fake
|
||||||
|
summary: Health check endpoint
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: The instance started successfully
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/HealthCheckResult'
|
||||||
servers:
|
servers:
|
||||||
- url: 'http://{server}.swagger.io:{port}/v2'
|
- url: 'http://{server}.swagger.io:{port}/v2'
|
||||||
description: petstore server
|
description: petstore server
|
||||||
@ -1599,3 +1611,10 @@ components:
|
|||||||
format: int64
|
format: int64
|
||||||
xml:
|
xml:
|
||||||
name: '$special[model.name]'
|
name: '$special[model.name]'
|
||||||
|
HealthCheckResult:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
NullableMessage:
|
||||||
|
nullable: true
|
||||||
|
type: string
|
||||||
|
description: Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user