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

[trivial] include definition group

parent ed7cfd2d
Branches
Tags
No related merge requests found
......@@ -17,10 +17,10 @@ This is an abstract schema. It has `definitions`, but does not declare any prope
# Abstract Definitions
| Property | Type |
|----------|------|
| [foo](#foo) | `string` |
| [bar](#bar) | `string` |
| Property | Type | Group |
|----------|------|-------|
| [foo](#foo) | `string` | `#/definitions/first` |
| [bar](#bar) | `string` | `#/definitions/second` |
## foo
......
......@@ -17,10 +17,10 @@ This is an extensible schema. It has `definitions`, that can be used in other sc
# Extensible Definitions
| Property | Type |
|----------|------|
| [foo](#foo) | `string` |
| [bar](#bar) | `string` |
| Property | Type | Group |
|----------|------|-------|
| [foo](#foo) | `string` | `#/definitions/first` |
| [bar](#bar) | `string` | `#/definitions/second` |
## foo
......
......@@ -17,9 +17,9 @@ A schema in a sub directory
# Subdir Definitions
| Property | Type |
|----------|------|
| [id](#id) | `string` |
| Property | Type | Group |
|----------|------|-------|
| [id](#id) | `string` | `#/definitions/content` |
## id
......
......@@ -175,6 +175,7 @@ const generateMarkdown = function(filename, schema, schemaPath, outDir, dependen
const property = definition[_.keys(definition)[j]];
//console.log('Checking ' + name + ' against ' + _.keys(schema.properties));
if (_.keys(schema.properties).indexOf(name)===-1) {
property.definitiongroup = _.keys(schema.definitions)[i];
abstract[name] = property;
}
}
......
......@@ -8,8 +8,8 @@
| Property | Type |
|----------|------|
| Property | Type | Group |
|----------|------|-------|
<% _.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