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

Include schema status in README

parent 439e6a16
Branches 48-readme-status
Tags
No related merge requests found
Pipeline #186 failed
cli.js 100644 → 100755
File mode changed from 100644 to 100755
......@@ -6,24 +6,24 @@
## /
* [Abstract](./abstract.schema.md)`https://example.com/schemas/abstract`
* [Arrays](./arrays.schema.md)`https://example.com/schemas/arrays`
* [Complex References ](./complex.schema.md)`https://example.com/schemas/complex`
* [Constant Types](./constants.schema.md)`https://example.com/schemas/constants`
* [Custom](./custom.schema.md)`https://example.com/schemas/custom`
* [Deeply Extending](./deepextending.schema.md)`https://example.com/schemas/deepextending`
* [Definitions](./definitions.schema.md)`https://example.com/schemas/definitions`
* [Enumerated ](./enums.schema.md)`https://example.com/schemas/enums`
* [Example](./example.schema.md)`https://example.com/schemas/example`
* [Examples](./examples.schema.md)`https://example.com/schemas/examples`
* [Extending](./extending.schema.md)`https://example.com/schemas/extending`
* [Extensible](./extensible.schema.md)`https://example.com/schemas/extensible`
* [Identifiable](./identifiable.schema.md)`https://example.com/schemas/identifiable`
* [Simple](./simple.schema.md)`https://example.com/schemas/simple`
* [Simple Types](./simpletypes.schema.md)`https://example.com/schemas/simpletypes`
* [Stabilizing](./stabilizing.schema.md)`https://example.com/schemas/stabilizing`
* [Abstract](./abstract.schema.md)`https://example.com/schemas/abstract` (Unknown)
* [Arrays](./arrays.schema.md)`https://example.com/schemas/arrays` (Unknown)
* [Complex References ](./complex.schema.md)`https://example.com/schemas/complex` (Unknown)
* [Constant Types](./constants.schema.md)`https://example.com/schemas/constants` (Unknown)
* [Custom](./custom.schema.md)`https://example.com/schemas/custom` (Unknown)
* [Deeply Extending](./deepextending.schema.md)`https://example.com/schemas/deepextending` (Unknown)
* [Definitions](./definitions.schema.md)`https://example.com/schemas/definitions` (Unknown)
* [Enumerated ](./enums.schema.md)`https://example.com/schemas/enums` (Unknown)
* [Example](./example.schema.md)`https://example.com/schemas/example` (Unknown)
* [Examples](./examples.schema.md)`https://example.com/schemas/examples` (Unknown)
* [Extending](./extending.schema.md)`https://example.com/schemas/extending` (Unknown)
* [Extensible](./extensible.schema.md)`https://example.com/schemas/extensible` (Unknown)
* [Identifiable](./identifiable.schema.md)`https://example.com/schemas/identifiable` (Unknown)
* [Simple](./simple.schema.md)`https://example.com/schemas/simple` (Unknown)
* [Simple Types](./simpletypes.schema.md)`https://example.com/schemas/simpletypes` (Unknown)
* [Stabilizing](./stabilizing.schema.md)`https://example.com/schemas/stabilizing` (Stabilizing)
## /subdir/
* [Subdir](./subdir/subdir.schema.md)`https://example.com/schemas/subdir/subdir`
* [Subdir](./subdir/subdir.schema.md)`https://example.com/schemas/subdir/subdir` (Unknown)
......@@ -38,6 +38,7 @@ const generateReadme = function(paths, schemas, out, base) {
id: schema.jsonSchema.$id,
title: schema.jsonSchema.title,
full: schema.filePath,
status: schema.jsonSchema['meta:status'] !== undefined ? (schema.jsonSchema['meta:status'].charAt(0).toUpperCase() + schema.jsonSchema['meta:status'].slice(1)) : 'Unknown',
relative: relativePath(schema.filePath, base),
dir: directory(schema.filePath, base),
};
......
......@@ -6,24 +6,24 @@
## /
* [Abstract](./abstract.schema.md)`https://example.com/schemas/abstract`
* [Arrays](./arrays.schema.md)`https://example.com/schemas/arrays`
* [Complex References ](./complex.schema.md)`https://example.com/schemas/complex`
* [Constant Types](./constants.schema.md)`https://example.com/schemas/constants`
* [Custom](./custom.schema.md)`https://example.com/schemas/custom`
* [Deeply Extending](./deepextending.schema.md)`https://example.com/schemas/deepextending`
* [Definitions](./definitions.schema.md)`https://example.com/schemas/definitions`
* [Enumerated ](./enums.schema.md)`https://example.com/schemas/enums`
* [Example](./example.schema.md)`https://example.com/schemas/example`
* [Examples](./examples.schema.md)`https://example.com/schemas/examples`
* [Extending](./extending.schema.md)`https://example.com/schemas/extending`
* [Extensible](./extensible.schema.md)`https://example.com/schemas/extensible`
* [Identifiable](./identifiable.schema.md)`https://example.com/schemas/identifiable`
* [Simple](./simple.schema.md)`https://example.com/schemas/simple`
* [Simple Types](./simpletypes.schema.md)`https://example.com/schemas/simpletypes`
* [Stabilizing](./stabilizing.schema.md)`https://example.com/schemas/stabilizing`
* [Abstract](./abstract.schema.md)`https://example.com/schemas/abstract` (Unknown)
* [Arrays](./arrays.schema.md)`https://example.com/schemas/arrays` (Unknown)
* [Complex References ](./complex.schema.md)`https://example.com/schemas/complex` (Unknown)
* [Constant Types](./constants.schema.md)`https://example.com/schemas/constants` (Unknown)
* [Custom](./custom.schema.md)`https://example.com/schemas/custom` (Unknown)
* [Deeply Extending](./deepextending.schema.md)`https://example.com/schemas/deepextending` (Unknown)
* [Definitions](./definitions.schema.md)`https://example.com/schemas/definitions` (Unknown)
* [Enumerated ](./enums.schema.md)`https://example.com/schemas/enums` (Unknown)
* [Example](./example.schema.md)`https://example.com/schemas/example` (Unknown)
* [Examples](./examples.schema.md)`https://example.com/schemas/examples` (Unknown)
* [Extending](./extending.schema.md)`https://example.com/schemas/extending` (Unknown)
* [Extensible](./extensible.schema.md)`https://example.com/schemas/extensible` (Unknown)
* [Identifiable](./identifiable.schema.md)`https://example.com/schemas/identifiable` (Unknown)
* [Simple](./simple.schema.md)`https://example.com/schemas/simple` (Unknown)
* [Simple Types](./simpletypes.schema.md)`https://example.com/schemas/simpletypes` (Unknown)
* [Stabilizing](./stabilizing.schema.md)`https://example.com/schemas/stabilizing` (Stabilizing)
## /subdir/
* [Subdir](./subdir/subdir.schema.md)`https://example.com/schemas/subdir/subdir`
* [Subdir](./subdir/subdir.schema.md)`https://example.com/schemas/subdir/subdir` (Unknown)
......@@ -50,7 +50,6 @@ describe('Compare results', () => {
'--link-status',
'status.md'
]);
ls.on('close', code => {
expect(code).toEqual(0);
......
......@@ -11,5 +11,5 @@
<% _.forIn(groups, (schemas, group) => { %>
## <%= group %>
<% _.forEach(_.sortBy(schemas, [o => { return o.title }]), schema => { %>
* [<%= schema.title %>](.<%= schema.relative %>.schema.md) – `<%= schema.id %>`<% }); %>
* [<%= schema.title %>](.<%= schema.relative %>.schema.md) – `<%= schema.id %>` (<%= schema.status %>)<% }); %>
<% }); %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment