From 194e9e415dac8692246e0590d2fc545bef55fb49 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 28 Jun 2023 22:34:52 +0200 Subject: [PATCH] bma.blockain.DIFFICULTIES_SCHEMA: Switch to prefixItems (#204) Which fixes the issue with 2020-12 draft set as default since jsonschema v4 JSON 2020-12 draft changes tuple from 'items' to 'prefixItems' https://json-schema.org/draft/2020-12/release-notes.html#changes-to-items-and-additionalitems --- duniterpy/api/bma/blockchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duniterpy/api/bma/blockchain.py b/duniterpy/api/bma/blockchain.py index 8110cc6..cf3315c 100644 --- a/duniterpy/api/bma/blockchain.py +++ b/duniterpy/api/bma/blockchain.py @@ -201,7 +201,7 @@ DIFFICULTIES_SCHEMA = { "block": {"type": "number"}, "levels": { "type": "array", - "items": [ + "prefixItems": [ { "type": "object", "properties": { -- GitLab