Skip to content

feat: add facility to add additional checks at end of file transforma… - #165

Merged
stevenhsd merged 2 commits into
release_v010from
feature/ndsp-650_entity_count_check
Sep 30, 2026
Merged

stevenhsd merged 2 commits into
release_v010from
feature/ndsp-650_entity_count_check

Conversation

@stevenhsd

@stevenhsd stevenhsd commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

…tion stage

TLDR of changes

What kind of changes does this PR introduce?

Tick all that apply

  • fix: A bug fix. Correlates with PATCH in SemVer
  • feat: A new feature. Correlates with MINOR in SemVer
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing or correcting existing tests
  • build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: GitLabCI)

Please check if the PR fulfills these requirements

  • I have read and followed the Contributing guidance
  • Docs have been added / updated
  • Tests and Linting in the CI are passing
  • Changes have been reviewed and approved by a Project Maintainer

Comment on lines +41 to +55
"reader_config": {
".xml": {
"reader": "DuckDBXMLStreamReader",
"kwargs": {
"record_tag": "airport",
"root_tag": "country"
},
"additional_checks": {
"check_empty": {
"error_code": "AIRPORTEMPTY",
"error_message": "No airport records included in submission"
}
}
}
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly move additional_checks into the same level as reader config so you only have to specify once.

@sonarqubecloud

Copy link
Copy Markdown

@stevenhsd
stevenhsd merged commit 2092879 into release_v010 Sep 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants