Skip to content

Commit 7176c54

Browse files
committed
Polish "Add metric description and base unit to metrics endpoint"
Closes gh-13813
1 parent ab1f8cf commit 7176c54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MetricsEndpointDocumentationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public void metric() throws Exception {
5454
.andExpect(status().isOk())
5555
.andDo(document("metrics/metric", responseFields(
5656
fieldWithPath("name").description("Name of the metric"),
57-
fieldWithPath("description").description("Description of the metric"),
57+
fieldWithPath("description")
58+
.description("Description of the metric"),
5859
fieldWithPath("baseUnit").description("Base unit of the metric"),
5960
fieldWithPath("measurements")
6061
.description("Measurements of the metric"),

0 commit comments

Comments
 (0)