Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box primitive values #88

Closed
jumpinjackie opened this issue Dec 11, 2014 · 0 comments
Closed

Box primitive values #88

jumpinjackie opened this issue Dec 11, 2014 · 0 comments
Assignees
Labels

Comments

@jumpinjackie
Copy link
Owner

For APIs that return primitive values, we need to box the result to provide consistency in expected response structure. Primitive values can neither be expressed in XML or JSON without boxing.

For such values, they should be boxed in XML like so:

<PrimitiveValue>
    <Type>boolean</Type>
    <Value>true</Value>
</PrimitiveValue>

The JSON equivalent being:

{
    "PrimitiveValue": {
        "Type": "boolean"
        "Value": true
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant