Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create JSON Schema for YAML File #192

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
42d9417
create json schema
mkdjr Jul 29, 2024
a5b7df1
add examples from specification using the `examples` keyword
mkdjr Jul 29, 2024
5b0a3a8
use `$dynamicAnchor` and `$dynamicRef` according to the JSON 2020-12 …
mkdjr Jul 30, 2024
ae1f3a2
update `parent` schema to correctly reference `#entry` if in an array…
mkdjr Jul 30, 2024
e5ded8a
add `abstract`, `annote`, and `genre` to schema
mkdjr Aug 2, 2024
3bab47a
add `annote` example to JSON schema
mkdjr Aug 26, 2024
523f2c0
Hayagriva JSON Schema
jassielof Feb 23, 2025
a5ebeb6
done
jassielof Feb 23, 2025
5284869
fmt
jassielof Feb 23, 2025
020a9bb
Merge branch 'typst:main' into main
mkdjr Feb 23, 2025
e2619b4
bad title example
jassielof Feb 24, 2025
223172d
order
jassielof Feb 24, 2025
baa2a6b
title example with single quotes and regex pattern don't support inse…
jassielof Feb 24, 2025
d0f6d8f
unrequired title because of parents
jassielof Feb 24, 2025
69ab709
move examples to defintions and include
jassielof Feb 24, 2025
a2912fd
Use $id instead of $dynamicAnchor for schema recursion
mkdjr Feb 24, 2025
db747b5
prevent inclusion of unexpected fields for each entry
mkdjr Feb 24, 2025
ec85829
make entry type case insensitive
mkdjr Feb 24, 2025
541b530
allow `title` field to accept objects as well
mkdjr Feb 24, 2025
377f3a9
allow integers for the `date` field
mkdjr Feb 24, 2025
f3a4b80
rearrange fields in `author`
mkdjr Feb 24, 2025
6246e21
fix `parent` field
mkdjr Feb 24, 2025
1210d54
specify non-floats for certain fields
mkdjr Feb 24, 2025
dd9e0d9
allow numbers for serial numbers
mkdjr Feb 24, 2025
ee04012
fix misspelling of archive
mkdjr Feb 24, 2025
48a5cf2
add schema validation and `basic.yml` validation
mkdjr Feb 24, 2025
4d63efc
remove redundant imports
mkdjr Feb 24, 2025
cafd358
removed format date
jassielof Feb 24, 2025
288d3ba
date tilde support
jassielof Feb 24, 2025
06e971f
no entry type required
jassielof Feb 24, 2025
99922b0
serial number supports strings or numbers
jassielof Feb 24, 2025
60d47fd
enhance timestamp descriptions and patterns for overflow handling
jassielof Feb 24, 2025
e79d3db
examples moved from any of
jassielof Feb 24, 2025
2d64df5
removed year only string example
jassielof Feb 24, 2025
56c5f4f
affiliated list wit unique items
jassielof Feb 24, 2025
1b50fbe
arrays with unique items
jassielof Feb 24, 2025
644dde4
tab size 4 and formatting
jassielof Feb 24, 2025
c56dc3d
add schema ID
jassielof Feb 24, 2025
e71cae1
merge improved JSON schema and reformat `basic.yml`
mkdjr Feb 25, 2025
269693c
Merge branch 'jassielof-main'
mkdjr Feb 25, 2025
ea53efb
Edited field descriptions and added examples
mkdjr Feb 25, 2025
5248924
disallow additional properties for `formattableString`'s object variant
mkdjr Feb 25, 2025
6136ce0
remove `sentence-case` field from title
mkdjr Feb 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ strum = { version = "0.26", features = ["derive"], optional = true }
heck = "0.5"
serde_json = "1"
regex = "1"
jsonschema = "0.29.0"

[[bin]]
name = "hayagriva"
Expand All @@ -46,3 +47,7 @@ required-features = ["cli"]
name = "citeproc"
path = "tests/citeproc.rs"
required-features = ["csl-json"]

[[test]]
name = "jsonschema"
path = "tests/schema.rs"
Loading
Loading