Mark nested optional fields as optional

See gh-15435
pull/15487/head
Andy Wilkinson 6 years ago
parent 6752be9333
commit ef4ea591b3

@ -149,12 +149,12 @@ public class MappingsEndpointServletDocumentationTests
.type(JsonFieldType.OBJECT) .type(JsonFieldType.OBJECT)
.description("Details of the method, if any, " .description("Details of the method, if any, "
+ "that will handle requests to this mapping."), + "that will handle requests to this mapping."),
fieldWithPath("*.[].details.handlerMethod.className") fieldWithPath("*.[].details.handlerMethod.className").optional()
.type(JsonFieldType.STRING) .type(JsonFieldType.STRING)
.description("Fully qualified name of the class of the method."), .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."), .type(JsonFieldType.STRING).description("Name of the method."),
fieldWithPath("*.[].details.handlerMethod.descriptor") fieldWithPath("*.[].details.handlerMethod.descriptor").optional()
.type(JsonFieldType.STRING) .type(JsonFieldType.STRING)
.description("Descriptor of the method as specified in the Java " .description("Descriptor of the method as specified in the Java "
+ "Language Specification.")); + "Language Specification."));

Loading…
Cancel
Save