Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
05acf4e
add description and examples for contentEncoding keyword
AgniveshChaubey Mar 31, 2024
a8b51b6
add the proposed encoding formats
AgniveshChaubey Mar 31, 2024
c9e976a
add title to schema
AgniveshChaubey Mar 31, 2024
78b3685
format the annotation output
AgniveshChaubey Apr 18, 2024
b410b08
temp commit
AgniveshChaubey Apr 18, 2024
246aac0
Merge branch 'main' into contentEncoding
AgniveshChaubey Apr 18, 2024
4ad4034
address the suggested changes
AgniveshChaubey Apr 22, 2024
066ab9e
Merge branch 'contentEncoding' of https://github.com/Intelligence-AI/…
AgniveshChaubey Apr 24, 2024
36571d2
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey Apr 24, 2024
09eb129
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 2, 2024
f1d37c5
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 3, 2024
6cf6c04
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 3, 2024
7366bf7
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 6, 2024
b7bc6bd
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 9, 2024
8982f61
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 12, 2024
1ce8e9f
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 17, 2024
b4a4171
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 18, 2024
29308fc
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 20, 2024
b7d1b1b
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 24, 2024
ade920b
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 27, 2024
8d8d44c
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 29, 2024
542776f
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey May 29, 2024
530b60b
Merge branch 'main' of https://github.com/Intelligence-AI/learnjsonsc…
AgniveshChaubey Mar 23, 2025
5d86d19
extend shortcode to take 'keyword', 'dialect' and 'vocabulary' arguments
AgniveshChaubey Mar 23, 2025
f02d18c
make vocabulary keyword as optional and use ref shortcode
AgniveshChaubey Mar 27, 2025
e46b6a9
add vocabulary name to tooltip
AgniveshChaubey Mar 29, 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
4 changes: 2 additions & 2 deletions content/2020-12/applicator/allOf.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ related:
keyword: not
---

The `allOf` keyword is used to specify that a given instance must validate against all of the subschemas provided within an array. It's essentially a logical "AND" operation where all conditions must be met for validation to pass.
The {{<link keyword="allOf" vocabulary="applicator">}} keyword is used to specify that a given instance must validate against all of the subschemas provided within an array. It's essentially a logical "AND" operation where all conditions must be met for validation to pass.

## Examples

Expand Down Expand Up @@ -129,7 +129,7 @@ The `allOf` keyword is used to specify that a given instance must validate again
{{<instance-fail `An instance conforming to the second subschema of 'allOf' is also invalid`>}}
{ "foo": "foo" }
{{</instance-fail>}}
* _Remember, if any subschema within the `allOf` keyword fails validation or has a boolean `false` value, the entire validation will always fail._
* _Remember, if any subschema within the {{<link keyword="allOf" vocabulary="applicator">}} keyword fails validation or has a boolean `false` value, the entire validation will always fail._

{{<schema `Schema with nested 'allOf'`>}}
{
Expand Down
12 changes: 12 additions & 0 deletions layouts/shortcodes/link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- $dialect := .Get "dialect" | default .Page.Section -}}
{{- $vocabulary := .Get "vocabulary" | default .Page.Parent.Params.title -}}
{{- $keyword := .Get "keyword" -}}

{{- if (not $keyword) -}}
{{- errorf "keyword parameter is required for this shortcode." -}}
{{- end -}}

{{ $vocabularyURL := $vocabulary | lower | printf "%s/%s" $dialect }}
{{ $keywordURL := (replace $keyword "$" "") | lower | printf "/%s/%s" $vocabularyURL }}

<a class="font-monospace" href="{{ ref $ $keywordURL }}" data-bs-toggle="tooltip" data-bs-title="Vocabulary: {{ title $vocabulary }}">{{ $keyword }}</a>