From 0d2aa4c6cd856a0640fac2afcea3185138cc01e5 Mon Sep 17 00:00:00 2001 From: Julien Date: Sun, 14 Jan 2024 16:20:40 -0800 Subject: [PATCH] chore: upgrade to latest openapi (#409) Co-authored-by: Paul Harris --- beacon-node-oapi.yaml | 2 +- types/p2p.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/beacon-node-oapi.yaml b/beacon-node-oapi.yaml index 164baed6..09597aba 100644 --- a/beacon-node-oapi.yaml +++ b/beacon-node-oapi.yaml @@ -1,4 +1,4 @@ -openapi: "3.0.3" +openapi: "3.1.0" info: title: "Eth Beacon Node API" diff --git a/types/p2p.yaml b/types/p2p.yaml index dc61ba07..3859ccb6 100644 --- a/types/p2p.yaml +++ b/types/p2p.yaml @@ -49,8 +49,9 @@ Peer: peer_id: $ref: "./p2p.yaml#/PeerId" enr: - nullable: true - $ref: "./p2p.yaml#/ENR" + oneOf: + - type: "null" + - $ref: "./p2p.yaml#/ENR" last_seen_p2p_address: allOf: - $ref: "./p2p.yaml#/Multiaddr"