@@ -321,14 +321,26 @@ to validate. Their names can be viewed by inspecting the
321
321
`FormatChecker.checkers ` attribute. Certain checkers will only be
322
322
available if an appropriate package is available for use. The easiest way to
323
323
ensure you have what is needed is to install ``jsonschema `` using the
324
- ``format `` setuptools extra -- i.e.
324
+ ``format `` or `` format_nongpl `` setuptools extra -- i.e.
325
325
326
326
.. code-block :: sh
327
327
328
328
$ pip install jsonschema[format]
329
329
330
- which will install all of the below dependencies for all formats. The
331
- more specific list of available checkers, along with their requirement
330
+ which will install all of the below dependencies for all formats.
331
+
332
+ Or if you want to install MIT-license compatible dependencies only:
333
+
334
+ .. code-block :: sh
335
+
336
+ $ pip install jsonschema[format_nongpl]
337
+
338
+ The non-GPL extra is intended to not install any direct dependencies
339
+ that are GPL (but that of course end-users should do their own verification).
340
+ At the moment, it supports all the available checkers except for ``iri `` and
341
+ ``iri-reference ``.
342
+
343
+ The more specific list of available checkers, along with their requirement
332
344
(if any,) are listed below.
333
345
334
346
.. note ::
@@ -342,7 +354,7 @@ Checker Notes
342
354
========================= ====================
343
355
``color `` requires webcolors _
344
356
``date ``
345
- ``date-time `` requires strict-rfc3339 _
357
+ ``date-time `` requires strict-rfc3339 _ or rfc3339-validator _
346
358
``email ``
347
359
``hostname ``
348
360
``idn-hostname `` requires idna _
@@ -353,9 +365,9 @@ Checker Notes
353
365
``json-pointer `` requires jsonpointer _
354
366
``regex ``
355
367
``relative-json-pointer `` requires jsonpointer _
356
- ``time `` requires strict-rfc3339 _
357
- ``uri `` requires rfc3987 _
358
- ``uri-reference `` requires rfc3987 _
368
+ ``time `` requires strict-rfc3339 _ or rfc3339-validator _
369
+ ``uri `` requires rfc3987 _ or rfc3986-validator _
370
+ ``uri-reference `` requires rfc3987 _ or rfc3986-validator _
359
371
========================= ====================
360
372
361
373
@@ -365,7 +377,8 @@ Checker Notes
365
377
.. _rfc5322 : https://tools.ietf.org/html/rfc5322#section-3.4.1
366
378
.. _strict-rfc3339 : https://pypi.org/pypi/strict-rfc3339/
367
379
.. _webcolors : https://pypi.org/pypi/webcolors/
368
-
380
+ .. _rfc3339-validator : https://pypi.org/project/rfc3339-validator/
381
+ .. _rfc3986-validator : https://pypi.org/project/rfc3986-validator/
369
382
370
383
.. note ::
371
384
0 commit comments