Re: JSON schema in WADL

2015-03-05 Thread Sergey Beryozkin
By the way in CXF 2.7.15 JSONProvider does not escape '/' by default, not actually sure why it was escaping them, should be just "application/json" instead of "application/\json", etc Thanks, Sergey On 05/03/15 10:50, Sergey Beryozkin wrote: Hi Mandy On 04/03/15 22:18, Mandy Warren wrote:

Re: JSON schema in WADL

2015-03-05 Thread Sergey Beryozkin
Hi Mandy On 04/03/15 22:18, Mandy Warren wrote: ​Thanks Sergey - if I do a GET on the href I get "BadRequest" as the WADLGenerator is expecting XML. If in future we can inline JSON schemas this problem goes away so less of an issue. HTTP Accept needs to be set to application/json for retrievin

Re: JSON schema in WADL

2015-03-04 Thread Mandy Warren
​Thanks Sergey - if I do a GET on the href I get "BadRequest" as the WADLGenerator is expecting XML. If in future we can inline JSON schemas this problem goes away so less of an issue. Also, I couldn't manage to get @XMLName to affect the generated WADL - looking through the WADLGenerator code

Re: JSON schema in WADL

2015-03-04 Thread Sergey Beryozkin
Hi Mandy Please see comments below On 03/03/15 23:43, Mandy Warren wrote: Hi Sergey, Thanks for the fast reply! So I've tried the linkAnyMediaTypeToXmlSchema and that worked fine but we are trying to move away from XSDs to Json Schema so am very supportive of the jira you raised! I tried the

Re: JSON schema in WADL

2015-03-03 Thread Mandy Warren
Hi Sergey, Thanks for the fast reply! So I've tried the linkAnyMediaTypeToXmlSchema and that worked fine but we are trying to move away from XSDs to Json Schema so am very supportive of the jira you raised! I tried the externalLinks property and it now shows an @href link but I'd really like t

Re: JSON schema in WADL

2015-03-03 Thread Sergey Beryozkin
Hi Mandy Thanks for experimenting, "schemaLocations" points to resources which are assumed to be XML schemas and these schemas are read as XML. I've actually created a JIRA few days ago to support inlining JSON schemas but for now schemaLocations is assumed to point to XML schemas only. Use

JSON schema in WADL

2015-03-03 Thread Mandy Warren
Hi, I recently read Sergey's blog (http://sberyozkin.blogspot.co.uk/2011/10/describing-json-services-in-wadl.html​) about support for JSON Wadls and managed to view a wadl in JSON but am still struggling to link the JSON schema to the wadl. My spring config looks as follows:-