Skip to content

Commit

Permalink
feat: add no-indent class, update allowed schema urls (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyhealey authored Jan 31, 2025
1 parent 1038933 commit 52050f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion article.raw.schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- BASE TYPES -->
<xs:simpleType name="schema_url_type">
<xs:restriction base="xs:string">
<xs:pattern value="https://raw\.githubusercontent\.com/CondeNast/tny-archive-schemas/v1\.\d+\.\d+/article\.raw\.schema\.xsd"/>
<xs:pattern value="https://(metamorph\.newyorker\.tools/schemas|raw\.githubusercontent\.com/CondeNast/tny-archive-schemas)/v1\.\d+\.\d+/article\.raw\.schema\.xsd"/>
</xs:restriction>
</xs:simpleType>

Expand Down Expand Up @@ -162,6 +162,7 @@
<xs:enumeration value="note"/>
<xs:enumeration value="descender"/>
<xs:enumeration value="chapter-heading"/>
<xs:enumeration value="no-indent"/>
</xs:restriction>
</xs:simpleType>

Expand Down
4 changes: 2 additions & 2 deletions article.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/CondeNast/tny-archive-schemas/v1.4.0/article.schema.json",
"$id": "https://metamorph.newyorker.tools/schemas/v1.6.0/article.schema.json",
"title": "Article",
"description": "A New Yorker article.",
"type": "object",
Expand Down Expand Up @@ -249,7 +249,7 @@
},
"schemaUrl": {
"type": "string",
"pattern": "https://raw\\.githubusercontent\\.com/CondeNast/tny-archive-schemas/v1\\.\\d+\\.\\d+/article\\.schema\\.json"
"pattern": "https://(metamorph\\.newyorker\\.tools/schemas|raw\\.githubusercontent\\.com/CondeNast/tny-archive-schemas)/v1\\.\\d+\\.\\d+/article\\.schema\\.json"
},
"uuidv4": {
"description": "A V4 UUID.",
Expand Down

0 comments on commit 52050f0

Please sign in to comment.