Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional top-level validation with custom schema #442

Merged
merged 6 commits into from
Feb 8, 2018

Conversation

drdavella
Copy link
Contributor

This closes #440. It adds an argument custom_schema to Asdf.open and also the asdf.AsdfFile constructor. The argument value should be the path to a custom schema that will be used in a secondary validation pass. This is intended to allow users to ensure that particular ASDF files follow custom conventions beyond those enforced by the standard.

This PR can probably be merged as-is (after review), but it may be useful to provide additional features/functionality in the future.

cc @Cadair

@stsci-bot
Copy link

stsci-bot bot commented Feb 5, 2018

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog. I help make sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here.

This was referenced Feb 5, 2018
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 94.741% when pulling 78fb43d on drdavella:custom-validation into 51af256 on spacetelescope:master.

@drdavella drdavella mentioned this pull request Feb 6, 2018
16 tasks
@drdavella drdavella merged commit 69065dc into asdf-format:master Feb 8, 2018
@drdavella drdavella deleted the custom-validation branch February 8, 2018 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for optional custom file format validation
3 participants