Hi,

Given the annotations of the TestResource class, I would expect to get the 
swagger.json given at the end of my previous message, and that would give 
me the following regarding the model in the ui:
Labels {
    description:    a map lang -> label
    < * >:    string
}

I'd be happy with that, but that's not what I get ("Labels" is not 
generated inside the "definitions" slot in the swagger json)


On Thursday, 27 April 2017 00:42:54 UTC+2, Ron wrote:
>
> It looks like you’re confusing two things. What you see in swagger-ui is 
> the model, and in your case, it looks like the `description` is not part of 
> the model, it’s metadata to it.
>
> So what are you trying to do? Add another fields called `description` to 
> the model described by the user, or are you trying to add a description to 
> the model that’s not actually part of it?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to