summaryrefslogtreecommitdiff
path: root/rest-api-templates/models.wiki.mustache
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-10-24 20:48:17 +0000
committerDavid M. Lee <dlee@digium.com>2013-10-24 20:48:17 +0000
commit32b4e7943427ec9c17d6388cd0f7e0ce3ef992f2 (patch)
treebc8b565c132f2155112c7be9f2191324bb3c214c /rest-api-templates/models.wiki.mustache
parent6fb07febbc43c1c4cbcef596a908b684b9bf95a6 (diff)
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/ ........ Merged revisions 401701 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api-templates/models.wiki.mustache')
-rw-r--r--rest-api-templates/models.wiki.mustache2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest-api-templates/models.wiki.mustache b/rest-api-templates/models.wiki.mustache
index b2e742afc..2bc1e467f 100644
--- a/rest-api-templates/models.wiki.mustache
+++ b/rest-api-templates/models.wiki.mustache
@@ -5,7 +5,7 @@
{{#models}}
h1. {{id}}
{{#extends}}Base type: [{{extends}}|#{{extends}}]{{/extends}}
-{{#has_subtypes}}Subtypes:{{#subtypes}} [{{id}}|#{{id}}]{{/subtypes}}{{/has_subtypes}}
+{{#has_subtypes}}Subtypes:{{#all_subtypes}} [{{id}}|#{{id}}]{{/all_subtypes}}{{/has_subtypes}}
{{#wiki_description}}
{{{wiki_description}}}