From ef4ea591b319438f6caa4d7ea47576c30c9a56c9 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 10 Dec 2018 17:49:41 +0000 Subject: [PATCH] Mark nested optional fields as optional See gh-15435 --- .../MappingsEndpointServletDocumentationTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MappingsEndpointServletDocumentationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MappingsEndpointServletDocumentationTests.java index 077e5d0f83..2be08981b7 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MappingsEndpointServletDocumentationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MappingsEndpointServletDocumentationTests.java @@ -149,12 +149,12 @@ public class MappingsEndpointServletDocumentationTests .type(JsonFieldType.OBJECT) .description("Details of the method, if any, " + "that will handle requests to this mapping."), - fieldWithPath("*.[].details.handlerMethod.className") + fieldWithPath("*.[].details.handlerMethod.className").optional() .type(JsonFieldType.STRING) .description("Fully qualified name of the class of the method."), - fieldWithPath("*.[].details.handlerMethod.name") + fieldWithPath("*.[].details.handlerMethod.name").optional() .type(JsonFieldType.STRING).description("Name of the method."), - fieldWithPath("*.[].details.handlerMethod.descriptor") + fieldWithPath("*.[].details.handlerMethod.descriptor").optional() .type(JsonFieldType.STRING) .description("Descriptor of the method as specified in the Java " + "Language Specification."));