{"id":51052641,"url":"https://github.com/thbar/xsd-validator","last_synced_at":"2026-06-22T18:32:11.935Z","repository":{"id":345498814,"uuid":"1180825885","full_name":"thbar/xsd-validator","owner":"thbar","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-19T10:00:43.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-20T02:55:43.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thbar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-13T13:03:02.000Z","updated_at":"2026-03-19T09:59:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thbar/xsd-validator","commit_stats":null,"previous_names":["thbar/xsd-validator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thbar/xsd-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fxsd-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fxsd-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fxsd-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fxsd-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thbar","download_url":"https://codeload.github.com/thbar/xsd-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Fxsd-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34661703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-22T18:32:11.763Z","updated_at":"2026-06-22T18:32:11.929Z","avatar_url":"https://github.com/thbar.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Project scope\n\nI'm using this as a \"playground\" to improve domain-specific (EU data formats, [NeTEx](https://github.com/NeTEx-CEN/NeTEx), [SIRI](https://github.com/SIRI-CEN/SIRI), [DATEX](https://docs.datex2.eu/v3.7/downloads/modelv37/#datex-ii-xml-schema) in particular) XSD validation.\n\n:warning: Do not expect any stability from this project, as it is very much exploratory at this point.\n\nNotes are mostly for myself at this point, too.\n\nAssumptions:\n- `dotnet` is installed (`mise install` will work thanks to `.tool-versions` here)\n- You unpack the NeTEx zip archive yourself on the disk\n- You have a local copy (`git clone` for `NeTEx` for instance) of the XSD you want to validate against\n\nNotes:\n- Current testing shows very significant speed improvements (sometimes 3x faster) over `xmllint` XSD validation on my machine\n- Equivalence of the errors of this validator versus `xmllint` has not yet been stricly compared (output is structured differently)\n- This will likely move to be an Elixir project, leveraging C#/F# via a specific wrapped module (NIF, \"Port\"...)\n\n### Clone a version of the NeTEx XSD\n\n```\nmkdir -p data/xsd\ngit clone --branch v2.0.0 --depth 1 https://github.com/NeTEx-CEN/NeTEx.git data/xsd/netex-v2.0.0\n```\n\n### Download a bit of data\n\nYou can download a smallish NeTEx archive at https://transport.data.gouv.fr/resources/82368:\n\n```\ncurl -L -o data/netex/82368.zip https://transport.data.gouv.fr/resources/82368/download\nunzip data/netex/82368.zip -d data/netex/82368.zip.unpack\n```\n\nThen call XSD validation with:\n\n```\ndotnet fsi xsd-validate.fsx data/xsd/netex-v2.0.0/xsd/NeTEx_publication.xsd data/netex/82368.zip.unpack\n\n# with logs\ndotnet fsi xsd-validate.fsx data/xsd/netex-v2.0.0/xsd/NeTEx_publication.xsd data/netex/82368.zip.unpack | tee data/logs/fsx.82368.log\n```\n\n### Equivalent call with `xmllint`\n\n```\nxmllint --schema data/xsd/netex-v2.0.0/xsd/NeTEx_publication.xsd --noout data/netex/82368.zip.unpack/**/*.xml\n\n# with logs\nxmllint --schema data/xsd/netex-v2.0.0/xsd/NeTEx_publication.xsd --noout data/netex/82368.zip.unpack/**/*.xml 2\u003e\u00261 | tee data/logs/xmllint.82368.log\n```\n\n(this is 3 times slower on my tests - will share more benchmarks at some point)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthbar%2Fxsd-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthbar%2Fxsd-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthbar%2Fxsd-validator/lists"}