Skip to content
Snippets Groups Projects
Commit b984cf8d authored by Lars Trieloff's avatar Lars Trieloff
Browse files

[trivial] include definition group

parent ed7cfd2d
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,10 @@ This is an abstract schema. It has `definitions`, but does not declare any prope ...@@ -17,10 +17,10 @@ This is an abstract schema. It has `definitions`, but does not declare any prope
# Abstract Definitions # Abstract Definitions
| Property | Type | | Property | Type | Group |
|----------|------| |----------|------|-------|
| [foo](#foo) | `string` | | [foo](#foo) | `string` | `#/definitions/first` |
| [bar](#bar) | `string` | | [bar](#bar) | `string` | `#/definitions/second` |
## foo ## foo
......
...@@ -17,10 +17,10 @@ This is an extensible schema. It has `definitions`, that can be used in other sc ...@@ -17,10 +17,10 @@ This is an extensible schema. It has `definitions`, that can be used in other sc
# Extensible Definitions # Extensible Definitions
| Property | Type | | Property | Type | Group |
|----------|------| |----------|------|-------|
| [foo](#foo) | `string` | | [foo](#foo) | `string` | `#/definitions/first` |
| [bar](#bar) | `string` | | [bar](#bar) | `string` | `#/definitions/second` |
## foo ## foo
......
...@@ -17,9 +17,9 @@ A schema in a sub directory ...@@ -17,9 +17,9 @@ A schema in a sub directory
# Subdir Definitions # Subdir Definitions
| Property | Type | | Property | Type | Group |
|----------|------| |----------|------|-------|
| [id](#id) | `string` | | [id](#id) | `string` | `#/definitions/content` |
## id ## id
......
...@@ -175,6 +175,7 @@ const generateMarkdown = function(filename, schema, schemaPath, outDir, dependen ...@@ -175,6 +175,7 @@ const generateMarkdown = function(filename, schema, schemaPath, outDir, dependen
const property = definition[_.keys(definition)[j]]; const property = definition[_.keys(definition)[j]];
//console.log('Checking ' + name + ' against ' + _.keys(schema.properties)); //console.log('Checking ' + name + ' against ' + _.keys(schema.properties));
if (_.keys(schema.properties).indexOf(name)===-1) { if (_.keys(schema.properties).indexOf(name)===-1) {
property.definitiongroup = _.keys(schema.definitions)[i];
abstract[name] = property; abstract[name] = property;
} }
} }
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
| Property | Type | | Property | Type | Group |
|----------|------| |----------|------|-------|
<% _.forIn(props, (schema, property, object) => { %> <% _.forIn(props, (schema, property, object) => { %>
| [<%= property %>](#<%= property %>) | <%= schema.simpletype %> | | [<%= property %>](#<%= property %>) | <%= schema.simpletype %> | `#/definitions/<%= schema.definitiongroup %>` |
<% }); %> <% }); %>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment