Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit c9d4e04

Browse files
committed
Make example links work.
This seems to have been using a more complex form of linking, but just switch to the simple form used in most places as it works and is easier to understand.
1 parent f6d650f commit c9d4e04

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

examples.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ Here is a basic example of a JSON Schema:
1212
Example schemas
1313
---------------
1414

15-
These sample schemas describe simple data structures which can be expressed as JSON:
15+
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
16+
way to reference the schema in a ``$ref``, but is not friendly to web browsers.
17+
The larger links use ".json" for browser compatibility.
1618

1719
|------------------------------------------------------------------------------|-----------------------------------------------------------------|
18-
| [Geographic Coordinate][geo.json] <br> [<small>(canonical url)</small>][geo] | a ___location as longitude and latitude |
19-
| [Card][card.json] <br> [<small>(canonical url)</small>][card] | a microformat-style representation of a person, company, organization, or place |
20-
| [Calendar][cal.json] <br> [<small>(canonical url)</small>][cal] | a microformat-style representation of an event |
21-
| [Address][addr.json] <br> [<small>(canonical url)</small>][addr] | a microformat-style representation of a street address |
20+
| [Geographic Coordinate](geo.json) <br> [<small>(canonical url)</small>](geo) | a ___location as longitude and latitude |
21+
| [Card](card.json) <br> [<small>(canonical url)</small>](card) | a microformat-style representation of a person, company, organization, or place |
22+
| [Calendar](cal.json) <br> [<small>(canonical url)</small>](cal) | a microformat-style representation of an event |
23+
| [Address](addr.json) <br> [<small>(canonical url)</small>](addr) | a microformat-style representation of a street address |
2224

2325
Walkthroughs
2426
------------
@@ -29,13 +31,3 @@ The two examples below are step-by-step guides into building a schema:
2931
- [a more advanced example](example2.md), using JSON Schema to describe filesystem entries in a Unix-like /etc/fstab file.
3032

3133
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/).
32-
33-
34-
[geo.json]: example/geo.json
35-
[card.json]: example/card.json
36-
[cal.json]: example/calendar.json
37-
[addr.json]: example/address.json
38-
[geo]: geo
39-
[card]: card
40-
[cal]: calendar
41-
[addr]: address

0 commit comments

Comments
 (0)