Skip to content

Commit 447b2bd

Browse files
fmigneaultmr-c
andauthored
fix over-indented list interpreted as code + typo (#620)
Co-authored-by: Michael R. Crusoe <[email protected]>
1 parent b6b1b8b commit 447b2bd

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

schema_salad/metaschema/vocab_res.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
- |
22
## Vocabulary resolution
33
4-
The schema may designate one or more vocabulary fields which use
5-
terms defined in the vocabulary. The vocabulary are the short
6-
names of all the identifiers in the schema. Processing must
7-
resolve vocabulary fields to either vocabulary terms or absolute
8-
URIs by first applying the link resolution rules defined above,
9-
then applying the following additional rule:
10-
11-
* If a reference URI is a vocabulary field, and there is a vocabulary
12-
term which maps to the resolved URI, the reference must be replace with
13-
the vocabulary term.
4+
The schema may designate one or more vocabulary fields which use
5+
terms defined in the vocabulary. The vocabulary are the short
6+
names of all the identifiers in the schema. Processing must
7+
resolve vocabulary fields to either vocabulary terms or absolute
8+
URIs by first applying the link resolution rules defined above,
9+
then applying the following additional rule:
10+
11+
* If a reference URI is a vocabulary field, and there is a vocabulary
12+
term which maps to the resolved URI, the reference must be replaced with
13+
the vocabulary term.
1414
1515
### Vocabulary resolution example
1616

schema_salad/tests/metaschema-pre.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"```\n\nThis becomes:\n\n```\n",
2626
"{\n \"$base\": \"http://example.com/base\",\n \"link\": \"http://example.com/base/zero\",\n \"form\": {\n \"link\": \"http://example.com/one\",\n \"things\": [\n {\n \"link\": \"http://example.com/two\"\n },\n {\n \"link\": \"http://example.com/base#three\"\n },\n {\n \"link\": \"http://example.com/four#five\",\n },\n {\n \"link\": \"http://example.com/acid#six\",\n }\n ]\n }\n}\n",
2727
"```\n",
28-
"## Vocabulary resolution\n\n The schema may designate one or more vocabulary fields which use\n terms defined in the vocabulary. The vocabulary are the short\n names of all the identifiers in the schema. Processing must\n resolve vocabulary fields to either vocabulary terms or absolute\n URIs by first applying the link resolution rules defined above,\n then applying the following additional rule:\n\n * If a reference URI is a vocabulary field, and there is a vocabulary\n term which maps to the resolved URI, the reference must be replace with\n the vocabulary term.\n\n### Vocabulary resolution example\n\nGiven the following schema:\n\n```\n",
28+
"## Vocabulary resolution\n\nThe schema may designate one or more vocabulary fields which use\nterms defined in the vocabulary. The vocabulary are the short\nnames of all the identifiers in the schema. Processing must\nresolve vocabulary fields to either vocabulary terms or absolute\nURIs by first applying the link resolution rules defined above,\nthen applying the following additional rule:\n\n* If a reference URI is a vocabulary field, and there is a vocabulary\n term which maps to the resolved URI, the reference must be replaced with\n the vocabulary term.\n\n### Vocabulary resolution example\n\nGiven the following schema:\n\n```\n",
2929
"{\n \"$namespaces\": {\n \"acid\": \"http://example.com/acid#\"\n },\n \"$graph\": [{\n \"name\": \"Colors\",\n \"type\": \"enum\",\n \"symbols\": [\"acid:red\"]\n },\n {\n \"name\": \"ExampleType\",\n \"type\": \"record\",\n \"fields\": [{\n \"name\": \"voc\",\n \"type\": \"string\",\n \"jsonldPredicate\": {\n \"_type\": \"@vocab\"\n }\n }]\n }]\n}\n",
3030
"```\n\nProcess the following example:\n\n```\n",
3131
" {\n \"form\": {\n \"things\": [\n {\n \"voc\": \"red\",\n },\n {\n \"voc\": \"http://example.com/acid#red\",\n },\n {\n \"voc\": \"http://example.com/acid#blue\",\n }\n ]\n }\n }\n",

0 commit comments

Comments
 (0)