<NME> tox.ini
<BEF> [tox]
skipsdist = True
envlist = py35,py36,py37,py38

[testenv]
whitelist_externals = poetry
skip_install = true
commands =
  poetry install -v
  poetry run pytest

<MSG> Add support for jsonschema 4.x

jsonschema 4.0 was released in September 2021. It's time to support it.
Only one issue to address in our tests, namely that when specifying the
'items' key for a property of type 'array', the value should be an
object, not an array of objects.

  Good:

    {
      "type": "object",
      "properties": {
        "fruits": {
          "type": "array",
          "items": { "type": "string" }
        }
      }
    }

  Bad:

    {
      "type": "object",
      "properties": {
        "fruits": {
          "type": "array",
          "items": [{ "type": "string" }]
        }
      }
    }

The docs say as much [1].

[1] https://json-schema.org/learn/miscellaneous-examples.html#arrays-of-things

Signed-off-by: Stephen Finucane <06fa905d7f2aaced6dc72e9511c71a2a51e8aead@that.guru>
Closes: #64

<DFF> @@ -3,8 +3,9 @@ skipsdist = True
 envlist = py35,py36,py37,py38
 
 [testenv]
-whitelist_externals = poetry
 skip_install = true
+deps =
+  poetry
 commands =
   poetry install -v
   poetry run pytest

Add support for jsonschema 4.x