You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Vjacheslav V. Borisov" <sl...@gmail.com> on 2017/01/17 15:44:09 UTC
xml namespace not generated in swagger.json generated by swagger2feature
Hi!
Playng again with swagger2feature and notice that definitions of jaxb
objects
do not contain namespace
"OperationSchema" : {
"type" : "object",
"properties" : {
"id" : {
"type" : "integer",
"format" : "int64"
},
"name" : {
"type" : "string"
}
},
"xml" : {
"name" : "operationSchema"
}
}
How to fix this?
Re: xml namespace not generated in swagger.json generated by swagger2feature
Posted by "Vjacheslav V. Borisov" <sl...@gmail.com>.
There is "xml" block in swagger specifiction
http://swagger.io/specification/
and swagger2feature fills only "name" parameter, but no "namespace"
So this is not implemented, understand
2017-01-17 19:47 GMT+04:00 Sergey Beryozkin <sb...@gmail.com>:
> Hi
>
> I've always been thinking Swagger can only describe JSON payloads which
> would have no namespaces. Unless some trick exists which I'm unaware of
>
> Sergey
>
>
> On 17/01/17 15:44, Vjacheslav V. Borisov wrote:
>
>> Hi!
>>
>> Playng again with swagger2feature and notice that definitions of jaxb
>> objects
>> do not contain namespace
>>
>> "OperationSchema" : {
>> "type" : "object",
>> "properties" : {
>> "id" : {
>> "type" : "integer",
>> "format" : "int64"
>> },
>> "name" : {
>> "type" : "string"
>> }
>> },
>> "xml" : {
>> "name" : "operationSchema"
>> }
>> }
>>
>>
>> How to fix this?
>>
>>
>
Re: xml namespace not generated in swagger.json generated by
swagger2feature
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
I've always been thinking Swagger can only describe JSON payloads which
would have no namespaces. Unless some trick exists which I'm unaware of
Sergey
On 17/01/17 15:44, Vjacheslav V. Borisov wrote:
> Hi!
>
> Playng again with swagger2feature and notice that definitions of jaxb
> objects
> do not contain namespace
>
> "OperationSchema" : {
> "type" : "object",
> "properties" : {
> "id" : {
> "type" : "integer",
> "format" : "int64"
> },
> "name" : {
> "type" : "string"
> }
> },
> "xml" : {
> "name" : "operationSchema"
> }
> }
>
>
> How to fix this?
>