From e6d0ef1cffc375b040d018cd6b1035400de86760 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Fri, 26 Apr 2024 17:07:14 +0300 Subject: [PATCH] Fix a minor typo in the referencing example docs. (We apparently forgot a testcode to enable doctesting this one). Closes: #1251 --- docs/referencing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/referencing.rst b/docs/referencing.rst index 8a180161..5e56d88c 100644 --- a/docs/referencing.rst +++ b/docs/referencing.rst @@ -113,10 +113,10 @@ Its purpose is to convert a piece of "opaque" JSON (or really a Python `dict` co Calling it will inspect a :kw:`$schema` keyword present in the given schema and use that to associate the JSON with an appropriate `specification `. If your schemas do not contain ``$schema`` dialect identifiers, and you intend for them to be interpreted always under a specific dialect -- say Draft 2020-12 of JSON Schema -- you may instead use e.g.: -.. code:: python +.. testcode:: from referencing import Registry, Resource - from referencing.jsonschema import DRAFT2020212 + from referencing.jsonschema import DRAFT202012 schema = DRAFT202012.create_resource({"type": "integer", "minimum": 0}) registry = Registry().with_resources( [