]> git.ipfire.org Git - thirdparty/asterisk.git/commit
The Swagger 1.2 specification for type extension ended up being
authorDavid M. Lee <dlee@digium.com>
Thu, 24 Oct 2013 03:12:06 +0000 (03:12 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 24 Oct 2013 03:12:06 +0000 (03:12 +0000)
commit5f31d0b182924aec0a406daacdedc981ab6a05b3
tree36714c18de42a8ec1708ae56a866f527005bf610
parent77136643d4e526f7ad199d9920fd992e2225ef0a
The Swagger 1.2 specification for type extension ended up being
slightly different than my proposal. Instead of putting an 'extends'
field on the subtype, the base type has a 'subTypes' field, which is a
list of the subTypes. Given that its a messaging model and not an
object model, kinda makes sense.

This patch changes the events.json api-doc, and the python translators
to take the new format into account.

Other changes that are in Swagger 1.2 were not adopted, since the spec
is still in flux, and could change before it's finalized.

A summary of changes to the Swagger-1.2 spec can be found at
https://github.com/wordnik/swagger-core/wiki/1.2-transition.

(closes issue ASTERISK-22440)
Review: https://reviewboard.asterisk.org/r/2909/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@401701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
rest-api-templates/ari_model_validators.c.mustache
rest-api-templates/models.wiki.mustache
rest-api-templates/swagger_model.py
rest-api/api-docs/events.json