Re: [w3c/manifest] Don't use enums, because they throw (#633)

> We could also use JSON Schema which is specifically designed for this use case (but I'm not familiar with the details, and a quick scan of the documents doesn't seem to let us process a JSON object being lenient about invalid values; it's either valid or not).

The JSON Schema allows for conditional subschemas which should make it possible to assign alternatives for cases where WebIDL throws.

Referencing WebIDL definitions for use in the JSON schema outside of the specification may require some thought this way, but this looks good to me on first impression.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/633#issuecomment-415335388

Received on Thursday, 23 August 2018 08:29:03 UTC