Skip to content

Add functions to check schema is followed - #210

Draft
sethaxen wants to merge 6 commits into
mainfrom
enforceschema
Draft

sethaxen wants to merge 6 commits into
mainfrom
enforceschema

Conversation

@sethaxen

@sethaxen sethaxen commented Aug 8, 2022

Copy link
Copy Markdown
Member

This PR adds 2 new API functions:

  • check_follows_schema
  • follows_schema

These are used to check whether an InferenceData object correctly follows the InferenceData schema. We may want to include this in the InferenceData constructor with the option to disable the check, but at least having these utility functions as part of the API is useful for anyone who wants to write their own converter so they can check that the output is valid.

@sethaxen

sethaxen commented Aug 8, 2022

Copy link
Copy Markdown
Member Author

This PR should probably wait on arviz-devs/arviz#2086 to be finalized first.

@sethaxen

Copy link
Copy Markdown
Member Author

This work should be moved to https://github.com/arviz-devs/InferenceObjects.jl

This branch has not been deployed

No deployments
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.

1 participant