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

JSON Element support #309

Open
RackerWilliams opened this issue Jul 26, 2016 · 0 comments
Open

JSON Element support #309

RackerWilliams opened this issue Jul 26, 2016 · 0 comments
Milestone

Comments

@RackerWilliams
Copy link
Contributor

Elements can be handled a number of ways...

One example is to bind a namespace to a pattern

<rax:json-element namespace="http://rackspace.com/" path="$_?type"/>

That means that if I see

<wadl:representation mediaType="application/json" element="rax:widget"/>

...where rax is bound to http://rackspace.com/

then we'd expect

{ "type" : "widget",
   "name" : "My Widget" 
 }

The other pattern should be to wrap...

<rax:json-element namespace="http://rackspace.com/" wrap="true"/>

Then we'd expect :

{ "widget" : { "name" : "My Widget"}}

I'd say wrap and path are mutually exclusive attributes.

@RackerWilliams RackerWilliams added this to the 2.0.1 milestone Jul 26, 2016
@RackerWilliams RackerWilliams modified the milestones: 2.0.1, 2.0.2 Aug 6, 2016
@RackerWilliams RackerWilliams modified the milestones: 2.0.2, 2.0.3 Oct 14, 2016
@RackerWilliams RackerWilliams modified the milestones: 2.0.3, 2.0.4 Nov 18, 2016
@RackerWilliams RackerWilliams modified the milestones: 2.2.0, 2.2.1 May 12, 2017
@RackerWilliams RackerWilliams modified the milestones: 2.2.1, 2.2.2 Jul 10, 2017
@RackerWilliams RackerWilliams modified the milestones: 2.2.2, 2.2.3 Aug 7, 2017
@RackerWilliams RackerWilliams modified the milestones: 2.4.0, 2.4.1 Aug 30, 2017
@RackerWilliams RackerWilliams modified the milestones: 2.4.0, 2.4.1, 2.4.2 Aug 30, 2017
@RackerWilliams RackerWilliams modified the milestones: 2.5.0, 2.5.1 Oct 23, 2017
@RackerWilliams RackerWilliams modified the milestones: 2.5.1, 2.5.2 Oct 31, 2017
@RackerWilliams RackerWilliams modified the milestones: 2.5.2, Upcoming Feb 6, 2018
@RackerWilliams RackerWilliams modified the milestones: 2.6.1, Next Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant