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

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

We've tried schema languages in the past and they don't really work well on web scale - authors make too many mistakes, and we fall into a "the tools will save us" situation.  

I also don't want to maintain a JSON Schema (or similar) implementation in Gecko :( ... I know, I'm super lazy. 

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

What we had originally wasn't bad - and quite fault tolerant. I think everyone is using a custom processor for Web Manifest, so that would most closely match reality. 

-- 
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-415632133

Received on Friday, 24 August 2018 02:29:34 UTC