diff --git a/.travis.yml b/.travis.yml
index 12841e3a..205d3479 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,18 +8,4 @@ before_script:
- PATH="./node_modules/.bin/:$PATH"
script:
- bundle exec jekyll build
-- ajv test -s schema -d "_includes/person.json" --valid
-- ajv test -s schema -d "_includes/example1/schema*.json" --valid
-- ajv test -s _includes/example1/schema1.json -d _includes/example1/instance.json --valid
-- ajv test -s _includes/example1/schema2.json -d _includes/example1/instance.json --valid
-- ajv test -s _includes/example1/schema3.json -d _includes/example1/instance.json --valid
-- ajv test -s _includes/example1/schema4.json -d _includes/example1/instance.json --valid
-- ajv test -s _includes/example1/schema5.json -d _includes/example1/instance.json --valid
-- ajv test -s schema -d _includes/example1/set_schema.json --valid
-- ajv test -s _includes/example1/set_schema.json -d _includes/example1/set_instance.json -r geo --valid
-- ajv test -s schema -d "_includes/example2/schema*.json" --valid
-- ajv test -s schema -d "_includes/example2/entry_schema*.json" --valid
-- ajv test -s schema -d "_includes/example2/storage_schema*.json" --valid
-- ajv test -s _includes/example2/schema1.json -d _includes/example2/instance.json --valid
-- ajv test -s _includes/example2/schema2.json -d _includes/example2/instance.json -r _includes/example2/entry_schema3.json --valid
-- ajv test -s schema -d address -d calendar -d card -d geo --valid
\ No newline at end of file
+- ajv test -s schema -d "learn/examples/*.json" --valid
diff --git a/_config.yml b/_config.yml
index 7bcc4ec8..d5aeeab0 100644
--- a/_config.yml
+++ b/_config.yml
@@ -28,7 +28,7 @@ theme: minima
header_pages:
- specification.md
-- examples.md
+- learn/index.md
- implementations.md
exclude:
diff --git a/_includes/example1/instance.json b/_includes/example1/instance.json
deleted file mode 100644
index 3cf40ec6..00000000
--- a/_includes/example1/instance.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "id": 1,
- "name": "A green door",
- "price": 12.50,
- "tags": ["home", "green"]
-}
\ No newline at end of file
diff --git a/_includes/example1/schema1.json b/_includes/example1/schema1.json
deleted file mode 100644
index bde74825..00000000
--- a/_includes/example1/schema1.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "title": "Product",
- "description": "A product from Acme's catalog",
- "type": "object"
-}
\ No newline at end of file
diff --git a/_includes/example1/schema2.json b/_includes/example1/schema2.json
deleted file mode 100644
index 593db4ce..00000000
--- a/_includes/example1/schema2.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "title": "Product",
- "description": "A product from Acme's catalog",
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier for a product",
- "type": "integer"
- }
- },
- "required": ["id"]
-}
\ No newline at end of file
diff --git a/_includes/example1/schema3.json b/_includes/example1/schema3.json
deleted file mode 100644
index cd8e32fd..00000000
--- a/_includes/example1/schema3.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "title": "Product",
- "description": "A product from Acme's catalog",
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier for a product",
- "type": "integer"
- },
- "name": {
- "description": "Name of the product",
- "type": "string"
- }
- },
- "required": ["id", "name"]
-}
\ No newline at end of file
diff --git a/_includes/example1/schema4.json b/_includes/example1/schema4.json
deleted file mode 100644
index 5d0a5490..00000000
--- a/_includes/example1/schema4.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "title": "Product",
- "description": "A product from Acme's catalog",
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier for a product",
- "type": "integer"
- },
- "name": {
- "description": "Name of the product",
- "type": "string"
- },
- "price": {
- "type": "number",
- "exclusiveMinimum": 0
- }
- },
- "required": ["id", "name", "price"]
-}
\ No newline at end of file
diff --git a/_includes/example1/schema5.json b/_includes/example1/schema5.json
deleted file mode 100644
index c17d9db2..00000000
--- a/_includes/example1/schema5.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "title": "Product",
- "description": "A product from Acme's catalog",
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier for a product",
- "type": "integer"
- },
- "name": {
- "description": "Name of the product",
- "type": "string"
- },
- "price": {
- "type": "number",
- "exclusiveMinimum": 0
- },
- "tags": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "minItems": 1,
- "uniqueItems": true
- }
- },
- "required": ["id", "name", "price"]
-}
\ No newline at end of file
diff --git a/_includes/example1/set_instance.json b/_includes/example1/set_instance.json
deleted file mode 100644
index b847cede..00000000
--- a/_includes/example1/set_instance.json
+++ /dev/null
@@ -1,31 +0,0 @@
-[
- {
- "id": 2,
- "name": "An ice sculpture",
- "price": 12.50,
- "tags": ["cold", "ice"],
- "dimensions": {
- "length": 7.0,
- "width": 12.0,
- "height": 9.5
- },
- "warehouseLocation": {
- "latitude": -78.75,
- "longitude": 20.4
- }
- },
- {
- "id": 3,
- "name": "A blue mouse",
- "price": 25.50,
- "dimensions": {
- "length": 3.1,
- "width": 1.0,
- "height": 1.0
- },
- "warehouseLocation": {
- "latitude": 54.4,
- "longitude": -32.7
- }
- }
-]
\ No newline at end of file
diff --git a/_includes/example1/set_schema.json b/_includes/example1/set_schema.json
deleted file mode 100644
index 93366142..00000000
--- a/_includes/example1/set_schema.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "title": "Product set",
- "type": "array",
- "items": {
- "title": "Product",
- "type": "object",
- "properties": {
- "id": {
- "description": "The unique identifier for a product",
- "type": "number"
- },
- "name": {
- "type": "string"
- },
- "price": {
- "type": "number",
- "exclusiveMinimum": 0
- },
- "tags": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "minItems": 1,
- "uniqueItems": true
- },
- "dimensions": {
- "type": "object",
- "properties": {
- "length": {"type": "number"},
- "width": {"type": "number"},
- "height": {"type": "number"}
- },
- "required": ["length", "width", "height"]
- },
- "warehouseLocation": {
- "description": "Coordinates of the warehouse with the product",
- "$ref": "http://json-schema.org/geo"
- }
- },
- "required": ["id", "name", "price"]
- }
-}
\ No newline at end of file
diff --git a/_includes/example2/entry_schema1.json b/_includes/example2/entry_schema1.json
deleted file mode 100644
index d6c7beff..00000000
--- a/_includes/example2/entry_schema1.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "id": "http://some.site.somewhere/entry-schema#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "description": "schema for an fstab entry",
- "type": "object",
- "required": [ "storage" ],
- "properties": {
- "storage": {
- "type": "object",
- "oneOf": [
- { "$ref": "#/definitions/diskDevice" },
- { "$ref": "#/definitions/diskUUID" },
- { "$ref": "#/definitions/nfs" },
- { "$ref": "#/definitions/tmpfs" }
- ]
- }
- },
- "definitions": {
- "diskDevice": {},
- "diskUUID": {},
- "nfs": {},
- "tmpfs": {}
- }
-}
\ No newline at end of file
diff --git a/_includes/example2/entry_schema2.json b/_includes/example2/entry_schema2.json
deleted file mode 100644
index 50dfc582..00000000
--- a/_includes/example2/entry_schema2.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "id": "http://some.site.somewhere/entry-schema#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "description": "schema for an fstab entry",
- "type": "object",
- "required": [ "storage" ],
- "properties": {
- "storage": {
- "type": "object",
- "oneOf": [
- { "$ref": "#/definitions/diskDevice" },
- { "$ref": "#/definitions/diskUUID" },
- { "$ref": "#/definitions/nfs" },
- { "$ref": "#/definitions/tmpfs" }
- ]
- },
- "fstype": {
- "enum": [ "ext3", "ext4", "btrfs" ]
- },
- "options": {
- "type": "array",
- "minItems": 1,
- "items": { "type": "string" },
- "uniqueItems": true
- },
- "readonly": { "type": "boolean" }
- },
- "definitions": {
- "diskDevice": {},
- "diskUUID": {},
- "nfs": {},
- "tmpfs": {}
- }
-}
\ No newline at end of file
diff --git a/_includes/example2/entry_schema3.json b/_includes/example2/entry_schema3.json
deleted file mode 100644
index 5ae25a98..00000000
--- a/_includes/example2/entry_schema3.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "id": "http://some.site.somewhere/entry-schema#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "description": "schema for an fstab entry",
- "type": "object",
- "required": [ "storage" ],
- "properties": {
- "storage": {
- "type": "object",
- "oneOf": [
- { "$ref": "#/definitions/diskDevice" },
- { "$ref": "#/definitions/diskUUID" },
- { "$ref": "#/definitions/nfs" },
- { "$ref": "#/definitions/tmpfs" }
- ]
- },
- "fstype": {
- "enum": [ "ext3", "ext4", "btrfs" ]
- },
- "options": {
- "type": "array",
- "minItems": 1,
- "items": { "type": "string" },
- "uniqueItems": true
- },
- "readonly": { "type": "boolean" }
- },
- "definitions": {
- "diskDevice": {
- "properties": {
- "type": { "enum": [ "disk" ] },
- "device": {
- "type": "string",
- "pattern": "^/dev/[^/]+(/[^/]+)*$"
- }
- },
- "required": [ "type", "device" ],
- "additionalProperties": false
- },
- "diskUUID": {
- "properties": {
- "type": { "enum": [ "disk" ] },
- "label": {
- "type": "string",
- "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
- }
- },
- "required": [ "type", "label" ],
- "additionalProperties": false
- },
- "nfs": {
- "properties": {
- "type": { "enum": [ "nfs" ] },
- "remotePath": {
- "type": "string",
- "pattern": "^(/[^/]+)+$"
- },
- "server": {
- "type": "string",
- "oneOf": [
- { "format": "hostname" },
- { "format": "ipv4" },
- { "format": "ipv6" }
- ]
- }
- },
- "required": [ "type", "server", "remotePath" ],
- "additionalProperties": false
- },
- "tmpfs": {
- "properties": {
- "type": { "enum": [ "tmpfs" ] },
- "sizeInMB": {
- "type": "integer",
- "minimum": 16,
- "maximum": 512
- }
- },
- "required": [ "type", "sizeInMB" ],
- "additionalProperties": false
- }
- }
-}
\ No newline at end of file
diff --git a/_includes/example2/instance.json b/_includes/example2/instance.json
deleted file mode 100644
index acc5c4a8..00000000
--- a/_includes/example2/instance.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "/": {
- "storage": {
- "type": "disk",
- "device": "/dev/sda1"
- },
- "fstype": "btrfs",
- "readonly": true
- },
- "/var": {
- "storage": {
- "type": "disk",
- "label": "8f3ba6f4-5c70-46ec-83af-0d5434953e5f"
- },
- "fstype": "ext4",
- "options": [ "nosuid" ]
- },
- "/tmp": {
- "storage": {
- "type": "tmpfs",
- "sizeInMB": 64
- }
- },
- "/var/www": {
- "storage": {
- "type": "nfs",
- "server": "my.nfs.server",
- "remotePath": "/exports/mypath"
- }
- }
-}
\ No newline at end of file
diff --git a/_includes/example2/schema1.json b/_includes/example2/schema1.json
deleted file mode 100644
index 616f1ac7..00000000
--- a/_includes/example2/schema1.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "properties": {
- "/": {}
- },
- "patternProperties": {
- "^(/[^/]+)+$": {}
- },
- "additionalProperties": false,
- "required": [ "/" ]
-}
\ No newline at end of file
diff --git a/_includes/example2/schema2.json b/_includes/example2/schema2.json
deleted file mode 100644
index 167a7710..00000000
--- a/_includes/example2/schema2.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "properties": {
- "/": { "$ref": "http://some.site.somewhere/entry-schema#" }
- },
- "patternProperties": {
- "^(/[^/]+)+$": { "$ref": "http://some.site.somewhere/entry-schema#" }
- },
- "additionalProperties": false,
- "required": [ "/" ]
-}
\ No newline at end of file
diff --git a/_includes/example2/storage_schema1.json b/_includes/example2/storage_schema1.json
deleted file mode 100644
index 7bf92b14..00000000
--- a/_includes/example2/storage_schema1.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "properties": {
- "type": { "enum": [ "disk" ] },
- "device": {
- "type": "string",
- "pattern": "^/dev/[^/]+(/[^/]+)*$"
- }
- },
- "required": [ "type", "device" ],
- "additionalProperties": false
-}
\ No newline at end of file
diff --git a/_includes/example2/storage_schema2.json b/_includes/example2/storage_schema2.json
deleted file mode 100644
index 2c77835b..00000000
--- a/_includes/example2/storage_schema2.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "properties": {
- "type": { "enum": [ "disk" ] },
- "label": {
- "type": "string",
- "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
- }
- },
- "required": [ "type", "label" ],
- "additionalProperties": false
-}
\ No newline at end of file
diff --git a/_includes/example2/storage_schema3.json b/_includes/example2/storage_schema3.json
deleted file mode 100644
index 66aea6e1..00000000
--- a/_includes/example2/storage_schema3.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "properties": {
- "type": { "enum": [ "nfs" ] },
- "remotePath": {
- "type": "string",
- "pattern": "^(/[^/]+)+$"
- },
- "server": {
- "type": "string",
- "oneOf": [
- { "format": "hostname" },
- { "format": "ipv4" },
- { "format": "ipv6" }
- ]
- }
- },
- "required": [ "type", "server", "remotePath" ],
- "additionalProperties": false
-}
\ No newline at end of file
diff --git a/_includes/example2/storage_schema4.json b/_includes/example2/storage_schema4.json
deleted file mode 100644
index 7caa3cd6..00000000
--- a/_includes/example2/storage_schema4.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "properties": {
- "type": { "enum": [ "tmpfs" ] },
- "sizeInMB": {
- "type": "integer",
- "minimum": 16,
- "maximum": 512
- }
- },
- "required": [ "type", "sizeInMB" ],
- "additionalProperties": false
-}
\ No newline at end of file
diff --git a/_includes/person.json b/_includes/person.json
deleted file mode 100644
index 6e128524..00000000
--- a/_includes/person.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "title": "Person",
- "type": "object",
- "properties": {
- "firstName": {
- "type": "string"
- },
- "lastName": {
- "type": "string"
- },
- "age": {
- "description": "Age in years",
- "type": "integer",
- "minimum": 0
- }
- },
- "required": ["firstName", "lastName"]
-}
\ No newline at end of file
diff --git a/example/address.json b/example/address.json
index dd124d65..0967ef42 100644
--- a/example/address.json
+++ b/example/address.json
@@ -1,19 +1 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "description": "An Address following the convention of http://microformats.org/wiki/hcard",
- "type": "object",
- "properties": {
- "post-office-box": { "type": "string" },
- "extended-address": { "type": "string" },
- "street-address": { "type": "string" },
- "locality":{ "type": "string" },
- "region": { "type": "string" },
- "postal-code": { "type": "string" },
- "country-name": { "type": "string"}
- },
- "required": ["locality", "region", "country-name"],
- "dependencies": {
- "post-office-box": ["street-address"],
- "extended-address": ["street-address"]
- }
-}
+{}
diff --git a/example/calendar.json b/example/calendar.json
index b716e8b5..0967ef42 100644
--- a/example/calendar.json
+++ b/example/calendar.json
@@ -1,38 +1 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "description": "A representation of an event",
- "type": "object",
- "required": [ "dtstart", "summary" ],
- "properties": {
- "dtstart": {
- "format": "date-time",
- "type": "string",
- "description": "Event starting time"
- },
- "dtend": {
- "format": "date-time",
- "type": "string",
- "description": "Event ending time"
- },
- "summary": { "type": "string" },
- "location": { "type": "string" },
- "url": { "type": "string", "format": "uri" },
- "duration": {
- "format": "time",
- "type": "string",
- "description": "Event duration"
- },
- "rdate": {
- "format": "date-time",
- "type": "string",
- "description": "Recurrence date"
- },
- "rrule": {
- "type": "string",
- "description": "Recurrence rule"
- },
- "category": { "type": "string" },
- "description": { "type": "string" },
- "geo": { "$ref": "http://json-schema.org/geo" }
- }
-}
+{}
diff --git a/example/card.json b/example/card.json
index 59dbbc93..0967ef42 100644
--- a/example/card.json
+++ b/example/card.json
@@ -1,49 +1 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "description": "A representation of a person, company, organization, or place",
- "type": "object",
- "required": ["familyName", "givenName"],
- "properties": {
- "fn": {
- "description": "Formatted Name",
- "type": "string"
- },
- "familyName": { "type": "string" },
- "givenName": { "type": "string" },
- "additionalName": { "type": "array", "items": { "type": "string" } },
- "honorificPrefix": { "type": "array", "items": { "type": "string" } },
- "honorificSuffix": { "type": "array", "items": { "type": "string" } },
- "nickname": { "type": "string" },
- "url": { "type": "string", "format": "uri" },
- "email": {
- "type": "object",
- "properties": {
- "type": { "type": "string" },
- "value": { "type": "string", "format": "email" }
- }
- },
- "tel": {
- "type": "object",
- "properties": {
- "type": { "type": "string" },
- "value": { "type": "string", "format": "phone" }
- }
- },
- "adr": { "$ref": "http://json-schema.org/address" },
- "geo": { "$ref": "http://json-schema.org/geo" },
- "tz": { "type": "string" },
- "photo": { "type": "string" },
- "logo": { "type": "string" },
- "sound": { "type": "string" },
- "bday": { "type": "string", "format": "date" },
- "title": { "type": "string" },
- "role": { "type": "string" },
- "org": {
- "type": "object",
- "properties": {
- "organizationName": { "type": "string" },
- "organizationUnit": { "type": "string" }
- }
- }
- }
-}
+{}
diff --git a/example/geo.json b/example/geo.json
index 4a0610ed..0967ef42 100644
--- a/example/geo.json
+++ b/example/geo.json
@@ -1,10 +1 @@
-{
- "id": "http://json-schema.org/geo",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "description": "A geographical coordinate",
- "type": "object",
- "properties": {
- "latitude": { "type": "number" },
- "longitude": { "type": "number" }
- }
-}
\ No newline at end of file
+{}
diff --git a/example/index.md b/example/index.md
new file mode 100644
index 00000000..0437e4d3
--- /dev/null
+++ b/example/index.md
@@ -0,0 +1 @@
+## Hello World
diff --git a/example/person.json b/example/person.json
new file mode 100644
index 00000000..0967ef42
--- /dev/null
+++ b/example/person.json
@@ -0,0 +1 @@
+{}
diff --git a/example1.md b/example1.md
deleted file mode 100644
index 026afc0c..00000000
--- a/example1.md
+++ /dev/null
@@ -1,105 +0,0 @@
----
-layout: page
-title: Building a product schema
----
-
-Let's pretend we're interacting with a JSON based product catalog. This catalog has a product which has an *id*, a *name*, a *price*, and an optional set of *tags*.
-
-### Example JSON data for a product API
-
-An example product in this API is:
-
-```json
-{% include example1/instance.json %}
-```
-
-While generally straightforward, that example leaves some open questions. For example, one may ask:
-
-- What is id?
-- Is name required?
-- Can price be 0?
-- Are all tags strings?
-
-When you're talking about a data format, you want to have metadata about what fields mean, and what valid inputs for those fields are. JSON schema is a specification for standardizing how to answer those questions for JSON data.
-
-Starting the schema
--------------------
-
-To start a schema definition, let's begin with a basic JSON schema:
-
-```json
-{% include example1/schema1.json %}
-```
-
-The above schema has four properties called *keywords*. The *title* and *description* keywords are descriptive only, in that they do not add constraints to the data being validated. The intent of the schema is stated with these two keywords (that is, this schema describes a product).
-
-The *type* keyword defines the first constraint on our JSON data: it has to be a JSON Object.
-
-Finally, the *$schema* keyword states that this schema is written according to the draft-06 specification.
-
-Defining the properties
------------------------
-
-Next let's answer our previous questions about this API, starting with id.
-
-### What is id?
-
-*id* is a numeric value that uniquely identifies a product. Since this is the canonical identifier for a product, it doesn't make sense to have a product without one, so it is required.
-
-In JSON Schema terms, we can update our schema to:
-
-```json
-{% include example1/schema2.json %}
-```
-
-### Is name required?
-
-*name* is a string value that describes a product. Since there isn't much to a product without a name, it also is required. Adding this gives us the schema:
-
-```json
-{% include example1/schema3.json %}
-```
-
-### Can price be 0?
-
-According to Acme's docs, there are no free products. So we need to specify *exclusiveMinimum*. If we wanted to include 0 as a valid price, we would have specified *minimum* instead. Therefore, we can update our schema with *price*:
-
-```json
-{% include example1/schema4.json %}
-```
-
-### Are all tags strings?
-
-Finally, we come to the *tags* property. Unlike the previous properties, tags have many values, and is represented as a JSON array. If, according to Acme's docs, all tags must be strings, but you aren't required to specify tags; we would simply leave *tags* out of the list of required properties.
-
-However, Acme's docs add two constraints:
-
-- there must be at least one tag,
-- all tags must be unique.
-
-The first constraint can be added with *minItems*, and the second one by specifying *uniqueItems* as being true:
-
-```json
-{% include example1/schema5.json %}
-```
-
-Summary
--------
-
-The above example is by no means definitive of all the types of data JSON schema can define. For more definitive information see the [full standard draft](#definitions).
-
-As a final example, here's a spec for an array of products, with the products having 2 new properties. The first is a *dimensions* property for the size of the product, and the second is a *warehouseLocation* field for where the warehouse that stores them is geographically located.
-
-And also, since JSON Schema defines a reference schema for a geographic location, instead of coming up with our own, we'll reference the [canonical one](http://json-schema.org/geo).
-
-### Set of products:
-
-```json
-{% include example1/set_instance.json %}
-```
-
-### Set of products schema:
-
-```json
-{% include example1/set_schema.json %}
-```
diff --git a/example2.md b/example2.md
deleted file mode 100644
index af537a5e..00000000
--- a/example2.md
+++ /dev/null
@@ -1,166 +0,0 @@
----
-layout: page
-title: Building a mount point schema
----
-
-This example shows a possible JSON representation of a hypothetical machine's mount points as represented in an `/etc/fstab` file.
-
-An entry in an fstab file can have many different forms. Here is a possible representation of a full fstab:
-
-```json
-{% include example2/instance.json %}
-```
-
-Not all constraints to an fstab file can be modeled using JSON Schema alone; however, it can represent a good number of them. We will add constraints one after the other until we get to a satisfactory result.
-
-Base schema
------------
-
-We will start with a base schema expressing the following constraints:
-
-- the list of entries is a JSON object;
-- the member names (or property names) of this object must all be valid, absolute paths;
-- there must be an entry for the root filesystem (ie, `/`).
-
-We also want the schema to be regarded as a draft v6 schema, we must therefore specify *$schema*:
-
-```json
-{% include example2/schema1.json %}
-```
-
-Note how the valid paths constraint is enforced here:
-
-- we have a *properties* keyword with only a `/` entry;
-- we use *patternProperties* to match other property names via a regular expression (note that it does not match `/`);
-- as *additionalProperties* is false, it constrains object properties to be either `/` or to match the regular expression.
-
-You will notice that the regular expression is explicitly anchored (with `^` and `$`): in JSON Schema, regular expressions (in *patternProperties* and in *pattern*) are not anchored by default.
-
-For now, the schemas describing individual entries are empty: we will start describing the constraints in the following paragraphs, using another schema, which we will reference from the main schema when we are ready.
-
-The entry schema - starting out
--------------------------------
-
-Here again we will proceed step by step. We will start with the global structure of our schema, which will be as such:
-
-```json
-{% include example2/entry_schema1.json %}
-```
-
-You should already be familiar with some of the constraints:
-
-- an fstab entry must be an object (`"type": "object"`);
-- it must have one property with name *storage* (`"required": [ "storage" ]`);
-- the *storage* property must also be an object.
-
-There are a couple of novelties:
-
-- you will notice the appearance of JSON References, via the *$ref* keyword; here, all references used are local to the schema, and the fragment part is a URI encoded JSON Pointer;
-- you will notice the appearance of an *id*: this is the URI of this resource; we assume here that this URI is the actual URI of this schema;
-- the *oneOf* keyword is new in draft v4; its value is an array of schemas, and an instance is valid if and only if it is valid against exactly one of these schemas;
-- finally, the *definitions* keyword is a standardized placeholder in which you can define inline subschemas to be used in a schema.
-
-### The *fstype*, *options* and *readonly* properties
-
-The entry schema - adding constraints
--------------------------------------
-
-Let's now extend this skeleton to add constraints to these three properties. Note that none of them are required:
-
-- we will pretend that we only support `ext3`, `ext4` and `btrfs` as filesystem types;
-- *options* must be an array, and the items in this array must be strings; moreover, there must be at least one item, and all items should be unique;
-- *readonly* must be a boolean.
-
-With these added constraints, the schema now looks like this:
-
-```json
-{% include example2/entry_schema2.json %}
-```
-
-For now, all definitions are empty (an empty JSON Schema validates all instances). We will write schemas for individual definitions below, and fill these schemas into the entry schema.
-
-The *diskDevice* storage type
------------------------------
-
-This storage type has two required properties, *type* and *device*. The type can only be *disk*, and the device must be an absolute path starting with */dev*. No other properties are allowed:
-
-```json
-{% include example2/storage_schema1.json %}
-```
-
-You will have noted that we need not specify that *type* must be a string: the constraint described by *enum* is enough.
-
-The *diskUUID* storage type
----------------------------
-
-This storage type has two required properties, *type* and *label*. The type can only be *disk*, and the label must be a valid UUID. No other properties are allowed:
-
-```json
-{% include example2/storage_schema2.json %}
-```
-
-The *nfs* storage type
-----------------------
-
-This storage type has three required properties: *type*, *server* and *remotePath*. What is more, the server may be either a host name, an IPv4 address or an IPv6 address.
-
-For the constraints on *server*, we use a new keyword: *format*. While it is not required that *format* be supported, we will suppose that it is here:
-
-```json
-{% include example2/storage_schema3.json %}
-```
-
-The *tmpfs* storage type
-------------------------
-
-This storage type has two required properties: *type* and *sizeInMB*. The size can only be an integer. What is more, we will require that the size be between 16 and 512, inclusive:
-
-```json
-{% include example2/storage_schema4.json %}
-```
-
-The full entry schema
----------------------
-
-The resulting schema is quite large:
-
-```json
-{% include example2/entry_schema3.json %}
-```
-
-Plugging this into our main schema
-----------------------------------
-
-Now that all possible entries have been described, we can refer to the entry schema from our main schema. We will, again, use a JSON Reference here:
-
-```json
-{% include example2/schema2.json %}
-```
-
-Wrapping up
------------
-
-This example is much more advanced than the previous example; you will have learned of schema referencing and identification, you will have been introduced to other keywords. There are also a few additional points to consider.
-
-### The schema can be improved
-
-This is only an example for learning purposes. Some additional constraints could be described. For instance:
-
-- it makes no sense for `/` to be mounted on a tmpfs filesystem;
-- it makes no sense to specify the filesystem type if the storage is either NFS or tmpfs.
-
-As an exercise, you can always try to add these constraints. It would probably require splitting the schema further.
-
-### Not all constraints can be expressed
-
-JSON Schema limits itself to describing the structure of JSON data, it cannot express functional constraints.
-
-If we take an NFS entry as an example, JSON Schema alone cannot check that the submitted NFS server's hostname, or IP address, is actually correct: this check is left to applications.
-
-### Tools have varying JSON Schema support
-
-While this is not a concern if you know that the schema you write will be used by you alone, you should keep this in mind if you write a schema which other people can potentially use. The schema we have written here has some features which can be problematic for portability:
-
-- *format* support is optional, and as such other tools may ignore this keyword: this can lead to a different validation outcome for the same data;
-- it uses regular expressions: care should be taken not to use any advanced features (such as lookarounds), since they may not be supported at the other end;
-- it uses *$schema* to express the need to use draft v6 compliant processing, but not all tools support draft v6.
diff --git a/examples.md b/examples.md
deleted file mode 100644
index 7e892480..00000000
--- a/examples.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-layout: page
-title: Examples
----
-
-Here is a basic example of a JSON Schema:
-
-```json
-{% include person.json%}
-```
-
-Example schemas
----------------
-
-These sample schemas describe simple data structures which can be expressed as JSON. The "canonical url" links omit the ".json" extension, which is the correct
-way to reference the schema in a ``$ref``, but is not friendly to web browsers.
-The larger links use ".json" for browser compatibility.
-
-|------------------------------------------------------------------------------|-----------------------------------------------------------------|
-| [Geographic Coordinate](example/geo.json)
[(canonical url)](geo) | a location as longitude and latitude |
-| [Card](example/card.json)
[(canonical url)](card) | a microformat-style representation of a person, company, organization, or place |
-| [Calendar](example/calendar.json)
[(canonical url)](calendar) | a microformat-style representation of an event |
-| [Address](example/address.json)
[(canonical url)](address) | a microformat-style representation of a street address |
-
-Walkthroughs
-------------
-
-The two examples below are step-by-step guides into building a schema:
-
-- [a simple example](example1.md) which covers a classical product catalog description.
-- [a more advanced example](example2.md), using JSON Schema to describe filesystem entries in a Unix-like /etc/fstab file.
-
-The [Space Telescope Science Institute](http://www.stsci.edu/) has also published a [guide aimed at schema authors](http://spacetelescope.github.io/understanding-json-schema/).
diff --git a/index.md b/index.md
index 2d480d20..bdc2ade0 100644
--- a/index.md
+++ b/index.md
@@ -10,60 +10,48 @@ permalink: /
**JSON Schema** is a vocabulary that allows you to **annotate** and **validate** JSON documents.
-Advantages
-----------
+## Advantages