Skip to content

Commit de5d5ef

Browse files
committed
Add Citation Style Language (CSL-JSON) schemas
1 parent acca622 commit de5d5ef

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/jsonid/registry_data.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,34 @@
877877
{"KEY": "content", "ISTYPE": dict},
878878
],
879879
),
880+
# CSL language schemas.
881+
#
882+
# https://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html#
883+
registry_class.RegistryEntry(
884+
identifier="jrid:0076",
885+
name=[{"@en": "Citation Style Language Citation (CSL-JSON) Schema"}],
886+
markers=[
887+
{"KEY": "$schema", "STARTSWITH": "http://json-schema.org/"},
888+
{"KEY": "$schema", "ENDSWITH": "/schema#"},
889+
{"KEY": "$id", "STARTSWITH": "https://resource.citationstyles.org/schema/"},
890+
{"KEY": "$id", "ENDSWITH": "/input/json/csl-citation.json"},
891+
{"KEY": "type", "IS": "object"},
892+
{"KEY": "properties", "ISTYPE": dict},
893+
],
894+
),
895+
registry_class.RegistryEntry(
896+
identifier="jrid:0077",
897+
name=[{"@en": "Citation Style Language Input Data Schema"}],
898+
markers=[
899+
{"KEY": "$schema", "STARTSWITH": "http://json-schema.org/"},
900+
{"KEY": "$schema", "ENDSWITH": "/schema#"},
901+
{"KEY": "$id", "STARTSWITH": "https://resource.citationstyles.org/schema/"},
902+
{"KEY": "$id", "ENDSWITH": "/input/json/csl-data.json"},
903+
{"KEY": "type", "IS": "array"},
904+
{"KEY": "items", "ISTYPE": dict},
905+
{"KEY": "definitions", "ISTYPE": dict},
906+
],
907+
),
880908
]
881909

882910

0 commit comments

Comments
 (0)