restfulobjects / restfulobjects-spec

The Restful Objects specification defines a set of RESTful resources, and corresponding JSON representations, for accessing and manipulating a domain object model.
http://restfulobjects.org
73 stars 10 forks source link

boolean value types should be represented as JSON boolean #25

Open runrightfast opened 10 years ago

runrightfast commented 10 years ago

In section 8.2 Version Resource Represention, the sample JSON contains:

"optionalCapabilities": { "blobsClobs": "yes", "deleteObjects": "no", "domainModel": "formal", "protoPersistentObjects": "yes", "validateOnly": "no", "inlinedMemberRepresentations": "yes" }

However, the value types for these optional capabilites are defined as boolean. Thus, the JSON should look like:

"optionalCapabilities": { "blobsClobs": true, "deleteObjects": true, "domainModel": "formal", "protoPersistentObjects": true, "validateOnly": true, "inlinedMemberRepresentations": true }