{{!
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}}{{range schema.minItems schema.maxItems 0 "" false false ".."}}
{{#each schemas}}
{{enum this}}
{{#simple this}}
{{__type}}
{{range minLength maxLength "" "" false false ".."}}{{range minimum maximum "-∞" "∞" exclusiveMinimum exclusiveMaximum ";"}}
{{/simple}}
{{#complex this}}
{{#box this}}
{{__type}}
{{/box}}
{{/complex}}
{{#ref this}}
{{#box this}}
{{__name}}
{{/box}}
{{/ref}}
{{#if pattern}}
/{{pattern}}/
{{/if}}
{{#if enum}}
{{#each enum}}
{{this}}
{{/each}}
{{/if}}
{{#exists default}}
default
{{__default}}
{{/exists}}
{{/each}}
{{/if}}
{{#unless keyword}}
{{#each schemas}}
{{enum this}}
{{#primitive this}}
{{__type}}
{{range minLength maxLength "" "" false false ".."}}{{range minimum maximum "-∞" "∞" exclusiveMinimum exclusiveMaximum ";"}}
{{/primitive}}
{{#ref this}}
{{#box this}}
{{__name}}
{{/box}}
{{/ref}}
{{#obj this}}
{{#box this}}
{{__type}}
{{/box}}
{{/obj}}
{{#if pattern}}
/{{pattern}}/
{{/if}}
{{#if enum}}
{{#each enum}}
{{this}}
{{/each}}
{{/if}}
{{#exists default}}
default
{{__default}}
{{/exists}}
{{/each}}
{{/unless}}