Benjamin Dauvergne
fb7fcf5f88
utils/xml: fix parsing of simpleContent XML schema ( #63191 )
2022-08-29 17:19:06 +02:00
Lauréline Guérin
51e649d179
misc: fix no-value-for-parameter pylint error ( #62099 )
2022-03-25 11:38:30 +01:00
Lauréline Guérin
76acec30c6
misc: fix use-implicit-booleaness-not-len pylint error ( #62099 )
2022-03-25 09:03:39 +01:00
Lauréline Guérin
7d04f9e541
misc: fix consider-using-in pylint error ( #62099 )
2022-03-25 09:03:37 +01:00
Lauréline Guérin
2e59a6c4be
misc: fix useless-object-inheritance pylint error ( #62099 )
2022-03-25 09:03:36 +01:00
Lauréline Guérin
59182339ab
misc: fix redundant-u-string-prefix pylint error ( #62099 )
2022-03-25 09:03:36 +01:00
Lauréline Guérin
302e573f70
misc: fix super-with-arguments pylint error ( #62099 )
2022-03-25 09:03:35 +01:00
Nicolas Roche
6fef9c1592
utils/xml: handle new xsd_type parameter on element_decode ( #62631 )
2022-03-11 17:35:10 +01:00
Nicolas Roche
20262feda4
utils/xml: import 'qnames' for xmlschema 1.0 ( #62631 )
2022-03-11 17:35:10 +01:00
Nicolas Roche
4a772d7796
utils/xml: eplicit is_element_only condition ( #62631 )
2022-03-11 17:35:10 +01:00
Nicolas Roche
53f00547f2
utils/xml: add pattern on XsdAtomicBuiltin type ( #62631 )
2022-03-11 17:35:10 +01:00
Frédéric Péters
d2c0be0396
misc: apply black 22.1.0
2022-03-01 19:43:28 +01:00
Benjamin Dauvergne
88de4a8bc8
utils/xml: mute xmlschema logs ( #56881 )
2021-09-14 10:39:26 +02:00
Benjamin Dauvergne
d28785640b
toulouse_smart: handle defaultValue and restrictedValues on intervention types ( #54215 )
2021-05-28 12:04:21 +02:00
Nicolas Roche
06db6d8767
misc: apply isort ( #52937 )
2021-05-07 13:51:13 +02:00
Frédéric Péters
3d9df1e526
trivial: apply black ( #49820 )
2021-02-20 16:28:47 +01:00
Benjamin Dauvergne
fabe3b9d98
utils: initialize converter when creating XMLSchema ( #39818 )
...
Also implement Converter.copy() as XMLSchema.__init__ copy
the given converter.
2020-02-17 19:00:27 +01:00
Lauréline Guérin
d088429533
misc: improve JSONSchemaFromXMLSchema ( #39028 )
2020-01-21 09:06:19 +01:00
Emmanuel Cazenave
c4e53adb81
avoid None to int comparison ( #38923 )
2020-01-14 19:20:26 +01:00
Lauréline Guérin
c053ef88fe
utils: manage nullable elements ( #38124 )
2019-12-19 09:19:59 +01:00
Lauréline Guérin
cc85bdc81c
utils: complete JSONSchemaFromXMLSchema for FILE ( #38230 )
2019-12-06 16:20:37 +01:00
Lauréline Guérin
29b1a1e521
utils: complete JSONSchemaFromXMLSchema ( #37873 )
...
- XSD_UNSIGNED_INT support
- XSD_DECIMAL support
- XsdUnion support
- XsdAtomicRestriction with more than one pattern
- XsdFractionDigitsFacet and XsdTotalDigitsFacet validators
2019-11-22 18:14:08 +01:00
Benjamin Dauvergne
392c8b9d3f
utils: allow customizing XML/JSON schemas/encoding/decoding ( #37659 )
2019-11-20 11:16:04 +01:00
Benjamin Dauvergne
cac6b144cb
utils: add support for XSchema pattern facet ( #37659 )
2019-11-20 11:16:04 +01:00
Benjamin Dauvergne
bb8b58dade
utils: add support for xs:int ( #37659 )
2019-11-20 11:16:04 +01:00
Benjamin Dauvergne
50c17adbfe
utils: add conversion from XMLSchema to JSON schema ( #37488 )
...
We target the Draft 7 jsonschema specification.
2019-11-19 15:49:54 +01:00
Benjamin Dauvergne
03f41cf340
add xml utility functions ( #26333 )
2018-09-26 11:01:53 +02:00