Skip to content

Commit

Permalink
Deleted schema files and used sdmxschemas library to validate them.
Browse files Browse the repository at this point in the history
Signed-off-by: javier.hernandez <javier.hernandez@meaningfuldata.eu>
  • Loading branch information
javihern98 committed May 26, 2024
1 parent 4e1635d commit f7498d7
Show file tree
Hide file tree
Showing 59 changed files with 22 additions and 27,047 deletions.
27 changes: 19 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ httpx = {version = "0.*", optional = true}
msgspec = "0.*"
lxml = {version = "5.*", optional = true}
xmltodict = {version = "0.*", optional = true}
sdmxschemas = {version = "0.*", optional = true}

[tool.poetry.extras]
fmr = ["httpx"]
xml = ["lxml", "xmltodict"]
xml = ["lxml", "xmltodict", "sdmxschemas"]

[tool.poetry.group.dev.dependencies]
darglint = "^1.8.1"
Expand Down
4 changes: 1 addition & 3 deletions src/pysdmx/io/xml/sdmx21/doc_validation.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
"""Validates an SDMX-ML 2.1 XML file against the XSD schema."""

from io import BytesIO
from pathlib import Path

from lxml import etree

from pysdmx.io.xml.__allowed_lxml_errors import ALLOWED_ERRORS_CONTENT

SCHEMA_PATH = Path(__file__).parent / "schemas" / "SDMXMessage.xsd"
from sdmxschemas import SDMX_ML_21_MESSAGE_PATH as SCHEMA_PATH


def validate_doc(infile: str) -> None:
Expand Down
Loading

0 comments on commit f7498d7

Please sign in to comment.