It is a longer description, but what you see in the rendering is the structure
of the model, {property name} -> {property type} so what you expect from the
rendering doesn’t make sense.
Forget swagger for a moment, and forget the code – what is the data structure
you are trying to describe?
From: <[email protected]> on behalf of François-Paul
Servant <[email protected]>
Reply-To: "[email protected]"
<[email protected]>
Date: Friday, 28 April 2017 at 8:38
To: Swagger <[email protected]>
Subject: Re: java annotations and definition of Maps
On Friday, 28 April 2017 03:51:15 UTC+2, Ron wrote:
What you’re saying doesn’t make sense.
really? that's not the feeling I had when I said it. Sorry about that, I must
be misunderstanding something.
The model describes property names and their types. `a map lang -> label` is
not a type.
Hmm, docs about io.swagger.annotations.ApiModel.description() says: "Provide a
longer description of the class." Isn't `a map lang -> label` a longer
description of the class? Insn't it... the "type" that has to contain, well, a
type?
Anyway, back to the core of my original question: how can I use annotations to
have generated, among the "definitions" in in swagger.json, a slot "Labels" (in
order to be able to have references such as: "$ref": "#/definitions/Labels" in
the description of the service)?
Hope that this makes sense
--
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.
--
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.