--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's in the spec document (look at the Schema Object) but not in the json-schema. It's on my todo list to add.
On 13 November 2014 13:17, mission liao <mission...@gmail.com> wrote:
Hi,I just found there is a migration guide https://github.com/swagger-api/swagger-spec/wiki/Swagger-1.2-to-2.0-Migration-GuideIn there, additionalProperties is used to describe Map primitives. However, I can't locate this property in Schema object in spec.Is this a miss or intended?
--
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 swagger-swaggersocket+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
{
"name_of_map": "my map",
"prop1": {
"id": 1,
"name": "property 1"
},
"prop2": {
"id": 2,
"name": "property no. 2"
},
}The keys in the map are "prop1" and "prop2". Is the key type by default going to be string ?
Also any idea when swagger UI will show correct rendering of these map definitions.
you're basically saying that you allow properties (as in keys) that have a value of type "string"."additionalProparties": { "type": "string" }The object definition of additionalProperties pretty much limits its type.So, if you have this:
On 31 December 2014 at 12:42, Sushil Singh <sush...@plumgrid.com> wrote:
Would greatly appreciate it if you post and example of how to use additionalProperties for Map ?
On Thursday, November 13, 2014 3:25:33 AM UTC-8, mission liao wrote:
Got it, I will assume it there.
On Thursday, 13 November 2014 19:19:58 UTC+8, Ron R wrote:
It's in the spec document (look at the Schema Object) but not in the json-schema. It's on my todo list to add.
On 13 November 2014 13:17, mission liao <mission...@gmail.com> wrote:
Hi,I just found there is a migration guide https://github.com/swagger-api/swagger-spec/wiki/Swagger-1.2-to-2.0-Migration-GuideIn there, additionalProperties is used to describe Map primitives. However, I can't locate this property in Schema object in spec.Is this a miss or intended?
--
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 swagger-swaggersocket+unsubscri...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.