Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 18 additions & 0 deletions src/00/02-introspect/build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#|
Copyright René Ferdinand Rivera Morell 2025
|#

actions json-validate
{
check-jsonschema -v --traceback-mode=full --schemafile "$(>[2])" "$(>[1])" && echo "passed" > "$(<)"
}

local validations ;
for local json in [ glob example-*.json ]
{
validations += [ make $(json:B:S=.check)
: $(json) std_info-1.0.0.json
: @json-validate ] ;
explicit $(json:B:S=.check) ;
}
alias validate : $(validations) ;
4 changes: 4 additions & 0 deletions src/00/02-introspect/example-01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "std_info-1.0.0.json",
"std_info": "1.0.0"
}
4 changes: 4 additions & 0 deletions src/00/02-introspect/example-02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "std_info-1.0.0.json",
"std_info": "[1,2.5]"
}
5 changes: 5 additions & 0 deletions src/00/02-introspect/example-03.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "std_info-1.0.0.json",
"std_info": "[1,2)",
"gcc_extra": "[2.1]"
}
3 changes: 3 additions & 0 deletions src/00/02-introspect/example-04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"std_info": "1.0.0"
}
3 changes: 3 additions & 0 deletions src/00/02-introspect/example-05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"std_info": "[1.0.0,2.0.0)"
}
5 changes: 5 additions & 0 deletions src/00/02-introspect/example-06.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "std_info-1.0.0.json",
"std_info": "[1.0.0,2.0.0)",
"gcc_extra": "1.5.0"
}
8 changes: 8 additions & 0 deletions src/00/02-introspect/example-07.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "std_info-1.0.0.json",
"std_info": "[1.0.0,2.0.0)",
"gcc_extra": [
"1.0.0",
"[2,3)"
]
}
Loading