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

Manifest error handling #38

Open
Sozialarchiv opened this issue Sep 19, 2018 · 1 comment
Open

Manifest error handling #38

Sozialarchiv opened this issue Sep 19, 2018 · 1 comment

Comments

@Sozialarchiv
Copy link

Sozialarchiv commented Sep 19, 2018

Is it possible to get error messages if a manifest file is invalid?

For a example if the id or label is missing.

Something like:

manifesto = manifesto.create(json);
if (!manifesto.isValid()) {
 let errors =  manifesto.getErrors();
}
@edsilv
Copy link
Member

edsilv commented Sep 20, 2018

Possibly... I was talking to @stephenwf recently about the future direction for manifesto. We thought about making a separate manifest "upgrader" library that updates your json to the latest presentation API spec. We could then potentially validate that against a json schema...
I think we'd want to use a schema as opposed to some kind of procedural check.

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

No branches or pull requests

2 participants