Skip to content

Commit

Permalink
remove duplicate schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Jul 11, 2024
1 parent a031790 commit 9cdb8a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/getPoolAttestationsV2Response"
"$ref" : "#/components/schemas/GetPoolAttestationsV2Response"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title" : "getPoolAttestationsV2Response",
"title" : "GetPoolAttestationsV2Response",
"type" : "object",
"required" : [ "version", "data" ],
"properties" : {
Expand All @@ -14,14 +14,6 @@
"type" : "object",
"oneOf" : [ {
"$ref" : "#/components/schemas/AttestationPhase0"
}, {
"$ref" : "#/components/schemas/AttestationPhase0"
}, {
"$ref" : "#/components/schemas/AttestationPhase0"
}, {
"$ref" : "#/components/schemas/AttestationPhase0"
}, {
"$ref" : "#/components/schemas/AttestationPhase0"
}, {
"$ref" : "#/components/schemas/AttestationElectra"
} ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static SerializableTypeDefinition<ObjectAndMetaData<List<Attestation>>>
schemaDefinitionCache, "Attestation", schemaGetters);

return SerializableTypeDefinition.<ObjectAndMetaData<List<Attestation>>>object()
.name("getPoolAttestationsV2Response")
.name("GetPoolAttestationsV2Response")
.withField("version", MILESTONE_TYPE, ObjectAndMetaData::getMilestone)
.withField("data", listOf(attestationType), ObjectAndMetaData::getData)
.build();
Expand Down

0 comments on commit 9cdb8a5

Please sign in to comment.