{{!
Copyright 2013 Laurent Bovet (laurent.bovet@windmaster.ch)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
}}
{{#if keyword}}
{{keyword}}
{{#each schemas}}
{{#simple this}}
of
{{__type}}s
{{range minimum maximum "-∞" "∞" exclusiveMinimum exclusiveMaximum ";"}}
{{/simple}}
{{format this}}
{{enum this}}
{{#complex this}}
{{#box this}}
{{__type}}
{{/box}}
{{/complex}}
{{#ref this}}
{{#box this}}
{{__name}}
{{/box}}
{{/ref}}
{{#if pattern}}
/{{pattern}}/
{{/if}}
{{#if enum}}
{{#each enum}}{{#unless @first}}{{#if this}}, {{/if}}{{/unless}}{{this}}{{/each}}
{{/if}}
{{/each}}
{{/if}}
{{#unless keyword}}
{{#each schemas}}
{{#primitive this}}
{{__type}}
{{range minimum maximum "-∞" "∞" exclusiveMinimum exclusiveMaximum ";"}}
{{/primitive}}
{{format this}}
{{enum this}}
{{#ref this}}
{{#box this}}
{{__name}}
{{/box}}
{{/ref}}
{{#obj this}}
{{#box this}}
{{__type}}
{{/box}}
{{/obj}}
{{#if pattern}}
/{{pattern}}/
{{/if}}
{{#if enum}}
{{#each enum}}
{{this}}{{#unless @last}},{{/unless}}
{{/each}}
{{/if}}
{{/each}}
{{/unless}}