Re: [w3c/manifest] Use WebIDL to describe the manifest data structure (#611)

Basically what we originally had, just tightened up a bit more that we understand what we want for each member type (and how to get values from each property). 

So:

 * Use just the JSON types - not the Web IDL types. And just hook directly into ES6 and skip WebIDL entirely.
 * define a `ExtractValue(object, property, expectedType, [trim, normalization])` abstract operation in terms of ES6. It throws TypeErrors that the caller then deals with. Optionally, normalization can be "lcase" or whatever - or we can do a breaking change and stop normalizing stuff. 
* We can even do specialized extractors: `ExtractStringValue()` if we want even more consistency with type checks and coercion (e.g., [ExtractColorValue()](https://github.com/mozilla/gecko-dev/blob/master/dom/manifest/ValueExtractor.jsm#L54)). 


-- 
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/611#issuecomment-446497495

Received on Wednesday, 12 December 2018 08:06:29 UTC