From f7c6b8e98089bb5aa3ecc77c32515df96072c183 Mon Sep 17 00:00:00 2001 From: eitanya Date: Sun, 26 Feb 2017 20:59:45 +0200 Subject: [PATCH 1/5] add 'js' method for js api docs --- lib/utils/swagger-defs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/swagger-defs.ts b/lib/utils/swagger-defs.ts index 28997e56..f5de3d61 100644 --- a/lib/utils/swagger-defs.ts +++ b/lib/utils/swagger-defs.ts @@ -1,6 +1,6 @@ 'use strict'; -export const methods = new Set(['get', 'put', 'post', 'delete', 'options', 'head', 'patch']); +export const methods = new Set(['get', 'put', 'post', 'delete', 'options', 'head', 'patch','js']); export const keywordTypes = { multipleOf: 'number', From f1ac3c918d1154f6623eee24bbaa3d22b9ce8818 Mon Sep 17 00:00:00 2001 From: eitanya Date: Tue, 14 Mar 2017 09:12:09 +0200 Subject: [PATCH 2/5] naive oneOf displayed similar to tuple sample only the first option --- .gitignore | 1 + lib/components/JsonSchema/json-schema.html | 13 +++++++++++++ lib/components/JsonSchema/json-schema.scss | 6 ++++++ lib/components/SchemaSample/schema-sample.ts | 7 ++++++- lib/services/schema-helper.service.ts | 16 +++++++++++++++- lib/services/schema-normalizer.service.ts | 9 +++++++++ 6 files changed, 50 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e4d93b73..b371351d 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ compiled /coverage .ghpages-tmp stats.json +/nbproject \ No newline at end of file diff --git a/lib/components/JsonSchema/json-schema.html b/lib/components/JsonSchema/json-schema.html index c60b7a28..d0efd5e7 100644 --- a/lib/components/JsonSchema/json-schema.html +++ b/lib/components/JsonSchema/json-schema.html @@ -41,6 +41,19 @@ +