From 051ee7487f497b717a86093d655165dcc0935272 Mon Sep 17 00:00:00 2001
From: Anjan Kaur <ankaur@anjansmacbook.corp.adobe.com>
Date: Fri, 29 Mar 2019 16:35:15 +0530
Subject: [PATCH] Fixing a test example json(subdir.schema.json)

---
 examples/docs/subdir/subdir.schema.md         | 31 ++++++++++---------
 .../subdir/subdir.schema.json                 |  2 +-
 examples/schemas/subdir/subdir.schema.json    |  2 +-
 spec/examples/subdir/subdir.schema.md         | 31 ++++++++++---------
 4 files changed, 34 insertions(+), 32 deletions(-)

diff --git a/examples/docs/subdir/subdir.schema.md b/examples/docs/subdir/subdir.schema.md
index 12e4f20..8daa9c9 100644
--- a/examples/docs/subdir/subdir.schema.md
+++ b/examples/docs/subdir/subdir.schema.md
@@ -13,23 +13,14 @@ A schema in a sub directory
 
 | [Abstract](../../abstract.md) | Extensible | [Status](../../status.md) | Identifiable | Custom Properties | Additional Properties | Defined In |
 |-------------------------------|------------|---------------------------|--------------|-------------------|-----------------------|------------|
-| Cannot be instantiated | Yes | Experimental | No | Forbidden | Permitted | [subdir/subdir.schema.json](subdir.schema.json) |
+| Can be instantiated | Yes | Experimental | No | Forbidden | Permitted | [subdir/subdir.schema.json](subdir.schema.json) |
 
+# Subdir Properties
 
-**All** of the following *requirements* need to be fulfilled.
-
-
-#### Requirement 1
-
-
-* []() – `#/definitions/id`
-
-
-# Subdir Definitions
-
-| Property | Type | Group |
-|----------|------|-------|
-| [id](#id) | `string` | `https://example.com/schemas/subdir/subdir#/definitions/content` |
+| Property | Type | Required | Nullable | Defined by |
+|----------|------|----------|----------|------------|
+| [id](#id) | `string` | Optional  | No | Subdir (this schema) |
+| `*` | any | Additional | Yes | this schema *allows* additional properties |
 
 ## id
 
@@ -52,3 +43,13 @@ A unique identifier given to every addressable thing.
 
 
 
+
+
+**All** of the following *requirements* need to be fulfilled.
+
+
+#### Requirement 1
+
+
+* []() – `#/definitions/content`
+
diff --git a/examples/generated-schemas/subdir/subdir.schema.json b/examples/generated-schemas/subdir/subdir.schema.json
index c2009a2..b5c1418 100644
--- a/examples/generated-schemas/subdir/subdir.schema.json
+++ b/examples/generated-schemas/subdir/subdir.schema.json
@@ -23,7 +23,7 @@
     },
     "allOf": [
         {
-            "$ref": "#/definitions/id"
+            "$ref": "#/definitions/content"
         }
     ]
 }
\ No newline at end of file
diff --git a/examples/schemas/subdir/subdir.schema.json b/examples/schemas/subdir/subdir.schema.json
index de5d89d..59493da 100644
--- a/examples/schemas/subdir/subdir.schema.json
+++ b/examples/schemas/subdir/subdir.schema.json
@@ -22,6 +22,6 @@
     }
   },
   "allOf": [
-    {"$ref": "#/definitions/id"}
+    {"$ref": "#/definitions/content"}
   ]
 }
\ No newline at end of file
diff --git a/spec/examples/subdir/subdir.schema.md b/spec/examples/subdir/subdir.schema.md
index b5b46a7..8daa9c9 100644
--- a/spec/examples/subdir/subdir.schema.md
+++ b/spec/examples/subdir/subdir.schema.md
@@ -13,23 +13,14 @@ A schema in a sub directory
 
 | [Abstract](../../abstract.md) | Extensible | [Status](../../status.md) | Identifiable | Custom Properties | Additional Properties | Defined In |
 |-------------------------------|------------|---------------------------|--------------|-------------------|-----------------------|------------|
-| Cannot be instantiated | Yes | Experimental | No | Forbidden | Permitted | [subdir/subdir.schema.json](subdir/subdir.schema.json) |
+| Can be instantiated | Yes | Experimental | No | Forbidden | Permitted | [subdir/subdir.schema.json](subdir.schema.json) |
 
+# Subdir Properties
 
-**All** of the following *requirements* need to be fulfilled.
-
-
-#### Requirement 1
-
-
-* []() – `#/definitions/id`
-
-
-# Subdir Definitions
-
-| Property | Type | Group |
-|----------|------|-------|
-| [id](#id) | `string` | `https://example.com/schemas/subdir/subdir#/definitions/content` |
+| Property | Type | Required | Nullable | Defined by |
+|----------|------|----------|----------|------------|
+| [id](#id) | `string` | Optional  | No | Subdir (this schema) |
+| `*` | any | Additional | Yes | this schema *allows* additional properties |
 
 ## id
 
@@ -52,3 +43,13 @@ A unique identifier given to every addressable thing.
 
 
 
+
+
+**All** of the following *requirements* need to be fulfilled.
+
+
+#### Requirement 1
+
+
+* []() – `#/definitions/content`
+
-- 
GitLab