From 7037ca88ee67df37c88b8a7759491c6bbb5f3711 Mon Sep 17 00:00:00 2001 From: "akihito.nakano" Date: Mon, 4 Feb 2019 19:15:05 +0900 Subject: [PATCH] Add "nullable" to fake yaml --- ...ith-fake-endpoints-models-for-testing.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml index 563ca99bc94..6522c275307 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml @@ -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.