[ 
https://issues.apache.org/jira/browse/SHINDIG-562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cassie Doll reassigned SHINDIG-562:
-----------------------------------

    Assignee:     (was: Cassie Doll)

Unassigning this issue because I am having real difficulties with betwixt. 

I'm hoping that there is someone out there who has more experience with 
advanced configuration of betwixt and can help Shindig cross this issue off the 
list. Here are the things I think are left to do:

1. empty lists need to be suppressed (i'm not sure why they are showing up...)

2. maps need a custom outputter. essentially, when we have a map like this:  
{key : value, key2 : value2} we need the following xml:
<key>value</key> <key2>value2</key2>

by default it does this:

<empty>false</empty>
<entry><key>key</key><value>value</value></entry>
<entry><key>key2</key><value>value2</value></entry>


3. within a list the items need to be renamed. (i thought this would be easy 
with .betwixt files but i couldn't get the converter to find/use my .betwixt 
files)

Betwixt does this by default:
<accounts>
  <AccountImpl> //that's the name of the java class
  ...
  </AccountImpl>
</accounts>
<activities>
  <String>...</String>
</activities>

and we need this:
<accounts>
  <account>
  ...
  </account>
</accounts>
<activities>
  <activity>...</activity>
</activities>

So there are 3 concrete things left - and then we will just need to check out 
output against the xsd to double check that we caught everything.

Patches welcome!

> Modify BeanXmlConveter to output properly formatted xml. 
> ---------------------------------------------------------
>
>                 Key: SHINDIG-562
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-562
>             Project: Shindig
>          Issue Type: New Feature
>          Components: RESTful API (Java)
>            Reporter: Cassie Doll
>            Priority: Blocker
>
> The BeanXmlConverter needs to match the xsd in the opensocial restful spec.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to