diff --git a/examples/docs/arrays.schema.md b/examples/docs/arrays.schema.md index 9392a71b46ac9c60e210bfc1824585cb4503611c..74c7371d70d4b971396de79f67f032f5856ca1ce 100644 --- a/examples/docs/arrays.schema.md +++ b/examples/docs/arrays.schema.md @@ -37,7 +37,6 @@ This is an array * is optional * type: `boolean[]` * at least `1` items in the array - * defined in this schema ### boollist Type @@ -62,7 +61,6 @@ This is an array of coordinates in three-dimensional space. * is optional * type: `number[][]` (nested array) * no more than `10` items in the array - * defined in this schema ### coordinatelist Type @@ -97,7 +95,6 @@ This is an array * is optional * type: `integer[]` * between `1` and `10` items in the array - * defined in this schema ### intlist Type @@ -174,7 +171,6 @@ This is an array * is optional * type: `number[]` * no more than `10` items in the array - * defined in this schema ### numlist Type @@ -227,7 +223,6 @@ The a property * is **required** * type: `string` - ##### a Type @@ -248,7 +243,6 @@ The b property * is optional * type: `integer` - ##### b Type diff --git a/examples/docs/complex.schema.md b/examples/docs/complex.schema.md index d3517577b29ed80355129d5af23e5e45563e2ce7..210a456ef067c299670ce6c515d572de74c4ed5c 100644 --- a/examples/docs/complex.schema.md +++ b/examples/docs/complex.schema.md @@ -132,7 +132,6 @@ A unique identifier given to every addressable thing. * is optional * type: `string` - ##### foo Type diff --git a/templates/md/nested-property.ejs b/templates/md/nested-property.ejs index 866a0815e968603e8d6af5210ee2d3bd9184c295..9d57b1ee2d875e50a7ef92b9d0bea3c7b028b1de 100644 --- a/templates/md/nested-property.ejs +++ b/templates/md/nested-property.ejs @@ -18,8 +18,7 @@ <% if (schema.maxItems!==undefined&&schema.minItems!==undefined) { %>* between `<%=schema.minItems %>` and `<%=schema.maxItems %>` items in the array<% } else if (schema.maxItems!==undefined ) { %>* no more than `<%=schema.maxItems %>` items in the array<% } else if (schema.minItems!==undefined ) { %>* at least `<%=schema.minItems %>` items in the array<% } %> -<% } %> -<% if (schema.default!==undefined) { %> +<% } %><% if (schema.default!==undefined) { %> * default: `<%= JSON.stringify(schema.default) %>` <% } %> diff --git a/templates/md/pattern-property.ejs b/templates/md/pattern-property.ejs index 8934ffc273446ea2a1d8338d7a7155d63dbf74c8..923da0c1fbe7abd3321ce49ccb53b544b7db2eee 100644 --- a/templates/md/pattern-property.ejs +++ b/templates/md/pattern-property.ejs @@ -21,8 +21,7 @@ Applies to all properties that match the regular expression `<%=name %>` <% if (schema.maxItems!==undefined&&schema.minItems!==undefined) { %>* between `<%=schema.minItems %>` and `<%=schema.maxItems %>` items in the array<% } else if (schema.maxItems!==undefined ) { %>* no more than `<%=schema.maxItems %>` items in the array<% } else if (schema.minItems!==undefined ) { %>* at least `<%=schema.minItems %>` items in the array<% } %> -<% } %> -<% if (schema.default!==undefined) { %> +<% } %><% if (schema.default!==undefined) { %> * default: `<%= JSON.stringify(schema.default) %>` <% } %> * defined in <% if (schema.$oSchema) { %>[<%= schema.$oSchema.$linkVal %>](<%= schema.$oSchema.$linkPath %>#<%= name %>)<% } else { %>this schema<% } %>