Add "nullable" to fake yaml

This commit is contained in:
akihito.nakano 2019-02-04 19:15:05 +09:00
parent b63242219c
commit 7037ca88ee

View File

@ -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.