2929* no more than ` <%=schema.maxItems %>` items in the array
3030< % } else if (schema .minItems !== undefined ) { % >
3131* at least ` <%=schema.minItems %>` items in the array< % } % >
32- < % } - %>
33-
34- <% if (schema .const !== undefined ) { % >
32+ < % } - %><% if (schema .const !== undefined ) { % >
3533The value of this property ** must** be equal to:
3634
3735
@@ -41,28 +39,23 @@ The value of this property **must** be equal to:
4139
4240< % } else if (schema .enum !== undefined ) { % >
4341The value of this property ** must** be equal to one of the [known values below](#< %= nameSlug % > - known- values).
44- < % } else { % >
45-
46- ### < %= name % > Type
47-
48- < % if (schema .type === " string" ) { % >
49- < %- include (" string-type" ,{schema: schema,_: _}) % >
42+ < % } else { % >< % if (schema .type === " string" ) { % >
43+ < %- include (" string-type" ,{schema: schema,_: _}).replace (/ ^ / gm , ' ' ) % >
5044< % } else if (schema .type === " number" || schema .type === " integer" ) { % >
51- < %- include (" number-type" ,{schema: schema,_: _}) % >
45+ < %- include (" number-type" ,{schema: schema,_: _}). replace ( / ^ / gm , ' ' ) % >
5246< % } else if (schema .type === " null" ) { % >
53- < %- include (" null-type" ,{schema: schema,_: _}) % >
47+ < %- include (" null-type" ,{schema: schema,_: _}). replace ( / ^ / gm , ' ' ) % >
5448< % } else if (schema .type === " boolean" ) { % >
55- < %- include (" boolean-type" ,{schema: schema,_: _}) % >
49+ < %- include (" boolean-type" ,{schema: schema,_: _}). replace ( / ^ / gm , ' ' ) % >
5650< % } else if (schema .type === " object" ) { % >
57- < %- include (" object-type" ,{schema: schema,_: _,nameSlug: nameSlug}) % >
58- < % } else if (schema .type === " array" ) { % >
59- < %- include (" array-type" ,{schema: schema,_: _,nested: false ,ejs: ejs}) % >
51+ < %- include (" object-type" ,{schema: schema,_: _,nameSlug: nameSlug}).replace (/ ^ / gm , ' ' ) % >
52+ < % } else if (schema .type === " array" ) { % >< %- include (" array-type" ,{schema: schema,_: _,nested: false ,ejs: ejs}).replace (/ ^ / gm , ' ' ) % >
6053< % } else if (schema .$ref !== undefined ) { % >
61- < %- include (" referenced-type" ,{schema: schema,_: _}) % >
54+ < %- include (" referenced-type" ,{schema: schema,_: _}). replace ( / ^ / gm , ' ' ) % >
6255< % } else if (schema .anyOf !== undefined || schema .allOf !== undefined || schema .oneOf !== undefined ) { % >
63- < %- include (" join-type" ,{schema: schema,_: _,schemas: schema .anyOf || schema .allOf || schema .oneOf ,ejs: ejs}) % >
56+ < %- include (" join-type" ,{schema: schema,_: _,schemas: schema .anyOf || schema .allOf || schema .oneOf ,ejs: ejs}). replace ( / ^ / gm , ' ' ) % >
6457< % } else if (schema .simpletype === " multiple" ) { % >
65- < %- include (" multiple-type" ,{schema: schema,_: _}) % >
58+ < %- include (" multiple-type" ,{schema: schema,_: _}). replace ( / ^ / gm , ' ' ) % >
6659< % } else { % >
6760Unknown type ` <%= schema.type %>` .
6861
@@ -74,12 +67,10 @@ Unknown type `<%= schema.type %>`.
7467< % }} %>
7568
7669<% if (schema .enum !== undefined || schema[" meta:enum" ]!== undefined ) { % >
77- ### < %= name % > Known Values
78-
79- | Value | Description |
80- | ------ - | ------------ - |
70+ | Value | Description |
71+ | ------ - | ------------ - |
8172< % _ .forIn (schema[" meta:enum" ], (value , key , object ) => { % >
82- | ` <%= key %>` | < %= value % > |
73+ | ` <%= key %>` | < %= value % > |
8374< % }); % >
8475
8576< % } %>
0 commit comments