Commit Graph

19 Commits

Author SHA1 Message Date
Davide Brunato 844ddec3ba Fix assertions
- Add custom parser for assertion facet (without position() and last()).
  - Move parser initialization to XsdAssert.parse_xpath_test() because
    all the components must be defined.
2019-10-01 06:44:31 +02:00
Davide Brunato 52d1e1bb8e Close XSD 1.1 development
- Still some W3C and local tests to be fixed
  - Fix min/max facets derivation (decode with primitive type)
2019-08-05 17:57:34 +02:00
Davide Brunato d21ac11dde Fix default values decoding as reported by issue #108
- Default and fixed values are inserted during the decode or
    encode process
  - Update tox.ini to include coverage and flake8 to environments
    and an optional environment to build source and wheel packages
2019-05-31 09:29:41 +02:00
Davide Brunato 3f470927b8 Code cleaning and package dependencies update 2019-05-05 15:13:40 +02:00
Davide Brunato 4dc7714a18 Update documentation and requirements 2019-02-25 14:44:28 +01:00
Davide Brunato 9cc61e8788 Rewrite assertions implementation 2019-02-22 22:50:05 +01:00
Davide Brunato 2eabc190fe Replace defusedxml dependency
- The defusedxml seems to be unmaintained and has some problems
    with the ElementTree loading
  - Replaced by a safe XMLParser that forbids entities processing
2019-01-22 17:50:13 +01:00
Davide Brunato b08139ea67 Update requirements and spilt XSD 1.0 and 1.1 built-in types
- requires elementpath >= 1.1.1
   - eg. XSD 1.0 dates use Date10 that not allows year 0000
2019-01-20 18:14:06 +01:00
Davide Brunato 33a734d84e Switch to v1.0.8 release development
- Dependency updated to elementpath >= 1.1.0
2018-12-23 16:29:04 +01:00
Davide Brunato 6f90effc53 Fix xs:short and xs:unsignedShort validators 2018-11-15 10:54:11 +01:00
Davide Brunato d249125f8e Add script for checking memory usage
- Added memory_profiler to requirements-dev.txt
  - Added xmlschema/tests/check_memory.py
2018-08-09 08:57:56 +02:00
Davide Brunato e967aa6db8 Use pathlib for checking resource URLs 2018-07-18 11:30:13 +02:00
Davide Brunato 49e8b22869 Added JSON serialization functions at module level
- Updated and revised documentation
  - Code cleaning (iter_encode and iter_decode args)
  - to_json() and from_json() module functions
  - New tests for module level API
2018-06-28 13:52:21 +02:00
Davide Brunato fb24068ebe Fix schema serialization and update version
- Modified CHANGELOG.rst
  - Lookup functions rewritten and bound to global names for serialization
  - Dependancy: elementpath minimal version now is 1.0.10
2018-06-15 18:39:52 +02:00
Davide Brunato 91514a8cce Add defusedxml to package requirements
Defuse XML data:
  - Added 'defuse' argument to XMLSchema class
  - Remote XML data is defused for default
  - Optionally one can disable defusing or force also
    for local XML data
2018-05-02 14:48:58 +02:00
Davide Brunato a3c6a66a62 Fix bug #58 and start integrating defusedxml library
Bug #58:
  - Added a file for test circular model detection

Integrating defusedxml:
  - defusedxml.ElementTree API loaded in etree.py
  - safe load with defusedxml only for network resources
2018-04-26 13:08:56 +02:00
Davide Brunato 8c3d1043a9 Enable testing with tox, add tox to requirements-dev.txt 2018-04-03 23:23:59 +02:00
Davide Brunato 14c4fbb61d Add elementpath to package requirements
- Changed XPath selectors for XSD key/unique/keyref constraints
  - Removed old code from xpath.py (only a class and an helper function
    have left in)
2018-03-27 11:02:14 +02:00
Davide Brunato c31fc194d8 Update schema class
- now parses also WSDL-SOAP original schema

  xmlschema/schema.py module:
    - more XSD compiliant imports and includes
    - added 'locations' argument to schema class init
    - improved schema location hints
    - revised documentation with more autodoc
    - schema class code cleaning
    - schema class creation is now based on a metaclass

  xmlschema/resources.py module:
    - added iter_schema_location_hints
    - fetch_schema code cleaned
    - removed old functions for retrieving XSI attributes

  xmlschema/exceptions.py module:
    - added index and expected attributes to XMLSchemaChildrenValidationError

  Updated docs using more autodocs

  Added requirements-dev.txt
2018-01-12 16:38:25 +01:00