w3c / w3c-api

The W3C API
https://w3c.github.io/w3c-api/
214 stars 92 forks source link

Get rid of discr property and merge it with type #39

Closed vivienlacourba closed 9 years ago

vivienlacourba commented 9 years ago

type property is needed on:

jean-gui commented 9 years ago

discr is present because it would be necessary for deserialization (in case of a POST or PUT). It is possible to rename it, but then you also have to explicitly add all the value<->class pairs, which will be a pain to pain.

I think it's better to let it be.

vivienlacourba commented 9 years ago

I agree.