Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·cc1b1c2aa5b9d8dfe9bbe19efa6b7d0e·80852·doc·optional·python-jsonschema-doc_4.10.3-1_all.deb |
2 | ·cca722f895088ef2211cd724896205f0·67860·python·optional·python3-jsonschema_4.10.3-1_all.deb | 2 | ·cca722f895088ef2211cd724896205f0·67860·python·optional·python3-jsonschema_4.10.3-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2023-01-20·10:53:50.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2023-01-20·10:53:50.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····1768·2023-01-20·10:53:50.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····1768·2023-01-20·10:53:50.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0····7889 | 3 | -rw-r--r--···0········0········0····78892·2023-01-20·10:53:50.000000·data.tar.xz |
Offset 35, 15 lines modified | Offset 35, 15 lines modified | ||
35 | ··········<div·class="body"·role="main"> | 35 | ··········<div·class="body"·role="main"> |
36 | ············ | 36 | ············ |
37 | ··<section·id="creating-or-extending-validator-classes"> | 37 | ··<section·id="creating-or-extending-validator-classes"> |
38 | <span·id="creating-validators"></span><h1>Creating·or·Extending·Validator·Classes<a·class="headerlink"·href="#creating-or-extending-validator-classes"·title="Permalink·to·this·heading">¶</a></h1> | 38 | <span·id="creating-validators"></span><h1>Creating·or·Extending·Validator·Classes<a·class="headerlink"·href="#creating-or-extending-validator-classes"·title="Permalink·to·this·heading">¶</a></h1> |
39 | <dl·class="py·function"> | 39 | <dl·class="py·function"> |
40 | <dt·class="sig·sig-object·py"·id="jsonschema.validators.create"> | 40 | <dt·class="sig·sig-object·py"·id="jsonschema.validators.create"> |
41 | <span·class="sig-prename·descclassname"><span·class="pre">jsonschema.validators.</span></span><span·class="sig-name·descname"><span·class="pre">create</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">meta_schema</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">validators=()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">version=None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">type_checker=TypeChecker(_type_checkers=pmap({'n | 41 | <span·class="sig-prename·descclassname"><span·class="pre">jsonschema.validators.</span></span><span·class="sig-name·descname"><span·class="pre">create</span></span><span·class="sig-paren">(</span><em·class="sig-param"><span·class="n"><span·class="pre">meta_schema</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">validators=()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">version=None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">type_checker=TypeChecker(_type_checkers=pmap({'integer':</span>·<span·class="pre"><function</span>·<span·class="pre"><lambda>></span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'boolean':</span>·<span·class="pre"><function</span>·<span·class="pre">is_bool></s[·...·truncated·by·diffoscope;·len:·802,·SHA:·e40b6b57b03706e14316a0e181a07176355ddefc6af121e9316e31bbe1197845·...·]>}))</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">format_checker=<FormatChecker</span>·<span·class="pre">checkers=['date'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'email'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'idn-email'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'idn-hostname'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'ipv4'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'ipv6'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'iri'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'iri-reference'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'json-pointer'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'regex'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'relative-json-pointer'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'uri'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'uri-reference'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">'uuid']></span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id_of=<function</span>·<span·class="pre">_id_of></span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">applicable_validators=operator.methodcaller('items')</span></span></em><span·class="sig-paren">)</span><a·class="reference·internal"·href="_modules/jsonschema/validators.html#create"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#jsonschema.validators.create"·title="Permalink·to·this·definition">¶</a></dt> |
42 | <dd><p>Create·a·new·validator·class.</p> | 42 | <dd><p>Create·a·new·validator·class.</p> |
43 | <dl·class="field-list·simple"> | 43 | <dl·class="field-list·simple"> |
44 | <dt·class="field-odd">Parameters<span·class="colon">:</span></dt> | 44 | <dt·class="field-odd">Parameters<span·class="colon">:</span></dt> |
45 | <dd·class="field-odd"><ul·class="simple"> | 45 | <dd·class="field-odd"><ul·class="simple"> |
46 | <li><p><strong>meta_schema</strong>·(<em>collections.abc.Mapping</em>)·–·the·meta·schema·for·the·new·validator·class</p></li> | 46 | <li><p><strong>meta_schema</strong>·(<em>collections.abc.Mapping</em>)·–·the·meta·schema·for·the·new·validator·class</p></li> |
47 | <li><p><strong>validators</strong>·(<em>collections.abc.Mapping</em>)·–·<p>a·mapping·from·names·to·callables,·where·each·callable·will | 47 | <li><p><strong>validators</strong>·(<em>collections.abc.Mapping</em>)·–·<p>a·mapping·from·names·to·callables,·where·each·callable·will |
48 | validate·the·schema·property·with·the·given·name.</p> | 48 | validate·the·schema·property·with·the·given·name.</p> |
Offset 5, 18 lines modified | Offset 5, 18 lines modified | ||
5 | ******·Creating·or·Extending·Validator·Classes¶·****** | 5 | ******·Creating·or·Extending·Validator·Classes¶·****** |
6 | ··jsonschema.validators.create(meta_schema,·validators=(),·version=None, | 6 | ··jsonschema.validators.create(meta_schema,·validators=(),·version=None, |
7 | ··type_checker=TypeChecker(_type_checkers=pmap({'n | 7 | ··type_checker=TypeChecker(_type_checkers=pmap({'integer':·<function·<lambda>>, |
8 | ··'null':·<function·is_null>,·'boolean':·<function·is_bool>,·'object': | ||
9 | ··<function·is_ | 8 | ··'boolean':·<function·is_bool>,·'string':·<function·is_string>,·'array': |
9 | ··<function·is_array>,·'null':·<function·is_null>,·'number':·<function | ||
10 | ··is_ | 10 | ··is_number>,·'object':·<function·is_object>})),·format_checker=<FormatChecker |
11 | ··checkers=['date',·'email',·'idn-email',·'idn-hostname',·'ipv4',·'ipv6', | 11 | ··checkers=['date',·'email',·'idn-email',·'idn-hostname',·'ipv4',·'ipv6', |
12 | ··'iri',·'iri-reference',·'json-pointer',·'regex',·'relative-json-pointer', | 12 | ··'iri',·'iri-reference',·'json-pointer',·'regex',·'relative-json-pointer', |
13 | ··'uri',·'uri-reference',·'uuid']>,·id_of=<function·_id_of>, | 13 | ··'uri',·'uri-reference',·'uuid']>,·id_of=<function·_id_of>, |
14 | ··applicable_validators=operator.methodcaller('items'))[source]¶ | 14 | ··applicable_validators=operator.methodcaller('items'))[source]¶ |
15 | ······Create·a·new·validator·class. | 15 | ······Create·a·new·validator·class. |
16 | ········Returns: | 16 | ········Returns: |
17 | ············a·new·jsonschema.protocols.Validator·class | 17 | ············a·new·jsonschema.protocols.Validator·class |
Offset 7, 29 lines modified | Offset 7, 29 lines modified | ||
7 | ········"meta_schema":·[0,·5], | 7 | ········"meta_schema":·[0,·5], |
8 | ········"version":·[0,·1,·3], | 8 | ········"version":·[0,·1,·3], |
9 | ········"none":·[0,·1,·2,·4,·5], | 9 | ········"none":·[0,·1,·2,·4,·5], |
10 | ········"type_check":·[0,·1,·5], | 10 | ········"type_check":·[0,·1,·5], |
11 | ········"typecheck":·[0,·5], | 11 | ········"typecheck":·[0,·5], |
12 | ········"_type_check":·0, | 12 | ········"_type_check":·0, |
13 | ········"pmap":·[0,·5], | 13 | ········"pmap":·[0,·5], |
14 | ········" | 14 | ········"integ":·[0,·1,·5], |
15 | ········"function":·[0,·1,·2,·4,·5], | 15 | ········"function":·[0,·1,·2,·4,·5], |
16 | ········"lambda":·[0,·1], | ||
16 | ········"is_numb":·0, | ||
17 | ········"null":·0, | ||
18 | ········"is_nul":·0, | ||
19 | ········"boolean":·[0,·5], | 17 | ········"boolean":·[0,·5], |
20 | ········"is_bool":·0, | 18 | ········"is_bool":·0, |
21 | ········"object":·[0,·1,·2,·3,·4,·5], | ||
22 | ········"is_object":·0, | ||
23 | ········"arrai":·[0,·1,·5], | ||
24 | ········"is_arrai":·0, | ||
25 | ········"string":·[0,·1,·2,·3,·5], | 19 | ········"string":·[0,·1,·2,·3,·5], |
26 | ········"is_str":·0, | 20 | ········"is_str":·0, |
27 | ········" | 21 | ········"arrai":·[0,·1,·5], |
22 | ········"is_arrai":·0, | ||
23 | ········"null":·0, | ||
24 | ········"is_nul":·0, | ||
28 | ········" | 25 | ········"number":·[0,·1,·3,·5], |
26 | ········"is_numb":·0, | ||
27 | ········"object":·[0,·1,·2,·3,·4,·5], | ||
28 | ········"is_object":·0, | ||
29 | ········"format_check":·[0,·5], | 29 | ········"format_check":·[0,·5], |
30 | ········"formatcheck":·[0,·1,·2,·5], | 30 | ········"formatcheck":·[0,·1,·2,·5], |
31 | ········"checker":·[0,·1,·5], | 31 | ········"checker":·[0,·1,·5], |
32 | ········"date":·[0,·2,·5], | 32 | ········"date":·[0,·2,·5], |
33 | ········"email":·[0,·5], | 33 | ········"email":·[0,·5], |
34 | ········"idn":·[0,·5], | 34 | ········"idn":·[0,·5], |
35 | ········"hostnam":·[0,·5], | 35 | ········"hostnam":·[0,·5], |