From 0ed64b0b88d72a1671a75d826de07dfaaae711f1 Mon Sep 17 00:00:00 2001 From: Ted Epstein Date: Sun, 3 Feb 2019 20:20:25 -0500 Subject: [PATCH 1/2] Added Gemfile, required to run a local test environment. --- Gemfile | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Gemfile diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000000..5b92871700 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +gem 'jekyll' +gem 'jekyll-theme-dinky' \ No newline at end of file From 5a6ae7f4f3d954e2174c9dc8045bb3a002c79241 Mon Sep 17 00:00:00 2001 From: Ted Epstein Date: Sun, 3 Feb 2019 22:07:17 -0500 Subject: [PATCH 2/2] Partial fix for #1823. Replaces repeated boilerplate code with an , referring to a page template in the folder. --- _includes/alternative-schema-entry.md | 11 +++++++++++ registries/_alternative-schema/jsonSchema.md | 16 ++++------------ registries/_alternative-schema/xmlSchema.md | 15 +++------------ 3 files changed, 18 insertions(+), 24 deletions(-) create mode 100644 _includes/alternative-schema-entry.md diff --git a/_includes/alternative-schema-entry.md b/_includes/alternative-schema-entry.md new file mode 100644 index 0000000000..033a75256f --- /dev/null +++ b/_includes/alternative-schema-entry.md @@ -0,0 +1,11 @@ +# {{ page.collection }} + +## {{ page.schemaTypeID }} - {{ page.schemaTypeName }} + +The `{{ page.schemaTypeID }}` `alternativeSchema` `type` refers to [{{ page.schemaTypeName }}]({{ page.specificationURL }}) in any version. + +{% if page.issue %} +### GitHub Issue + +* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }}) +{% endif %} \ No newline at end of file diff --git a/registries/_alternative-schema/jsonSchema.md b/registries/_alternative-schema/jsonSchema.md index 6f49ba65f2..6414dcc742 100644 --- a/registries/_alternative-schema/jsonSchema.md +++ b/registries/_alternative-schema/jsonSchema.md @@ -1,18 +1,10 @@ --- +schemaTypeID: jsonSchema +schemaTypeName: JSON Schema +specificationURL: http://json-schema.org/ owner: darrelmiller issue: 1532 -description: JSON Schema layout: default --- -# {{ page.collection }} - -## {{ page.slug }} - {{ page.description }} - -The `{{ page.slug }}` `alternativeSchema` `type` refers to [JSON Schema](http://json-schema.org/) in any version. - -{% if page.issue %} -### GitHub Issue - -* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }}) -{% endif %} +{% include alternative-schema-entry.md %} \ No newline at end of file diff --git a/registries/_alternative-schema/xmlSchema.md b/registries/_alternative-schema/xmlSchema.md index f8da45a5e0..3b871cc148 100644 --- a/registries/_alternative-schema/xmlSchema.md +++ b/registries/_alternative-schema/xmlSchema.md @@ -1,18 +1,9 @@ --- +schemaTypeID: xmlSchema +schemaTypeName: XML Schema Definition Language (XSD) owner: darrelmiller issue: 1532 -description: xml Schema layout: default --- -# {{ page.collection }} - -## {{ page.slug }} - {{ page.description }} - -The `{{ page.slug }}` `alternativeSchema` `type` refers to [xml Schema](https://www.w3.org/XML/Schema) in any version. - -{% if page.issue %} -### GitHub Issue - -* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }}) -{% endif %} +{% include alternative-schema-entry.md %} \ No newline at end of file