manifesto
manifesto copied to clipboard
Manifest error handling
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();
}
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.