Swagger 1.2 spec

109 צפיות
מעבר להודעה הראשונה שלא נקראה

David Lee

לא נקראה,
13 באוג׳ 2013, 10:10:0213.8.2013
עד wordn...@googlegroups.com
Greetings!

I've noticed that there's now a 1.2 transition page up [on the wiki][1], and I had a few questions about it.

Is the 1.2 specification finalized yet? If not, is there an ETA as to when it will be? And is this the best ML to follow its progress?

The 1.2 transition page states that the models are now described with JSON-Schema Draft 4. How does that affect the type variance [we discussed earlier][2]?


Thanks!
--
David M. Lee
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org

Tony Tam

לא נקראה,
13 באוג׳ 2013, 11:32:5013.8.2013
עד wordn...@googlegroups.com
Hi David, polymorphism is fully supported, and even more clear than before.  See here:


{
"id": "Animal",
"description": "a model with subtypes",
"discriminator": "name",
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
}
},
"subTypes": [
"DomesticAnimal",
"WildAnimal"
]
}
השב לכולם
השב למחבר
העבר לנמענים
0 הודעות חדשות