Skip to content

Commit 8ed8332

Browse files
committed
Update graffiti type
1 parent cbda36d commit 8ed8332

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

validator/client/src/main/java/tech/pegasys/teku/validator/client/restapi/apis/GetGraffiti.java

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public class GetGraffiti extends RestApiEndpoint {
4444
DeserializableTypeDefinition.string(Bytes32.class)
4545
.formatter(GetGraffiti::processGraffitiString)
4646
.parser(Bytes32Parser::toBytes32)
47+
.example("Example graffiti")
48+
.description("Bytes32 string")
49+
.format("byte")
4750
.build();
4851

4952
private static final SerializableTypeDefinition<GraffitiResponse> GRAFFITI_RESPONSE_TYPE =

validator/client/src/test/resources/tech/pegasys/teku/validator/client/restapi/schema/GraffitiResponse.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
"$ref" : "#/components/schemas/Pubkey"
1212
},
1313
"graffiti" : {
14-
"type" : "string"
14+
"type" : "string",
15+
"description" : "Bytes32 string",
16+
"example" : "Example graffiti",
17+
"format" : "byte"
1518
}
1619
}
1720
}

0 commit comments

Comments
 (0)