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
|
||||
required:
|
||||
- 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:
|
||||
- url: 'http://{server}.swagger.io:{port}/v2'
|
||||
description: petstore server
|
||||
@ -1599,3 +1611,10 @@ components:
|
||||
format: int64
|
||||
xml:
|
||||
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