Skip to content

Conversation

@davidB
Copy link
Contributor

@davidB davidB commented Jan 8, 2026

Changes

  • replace the validate.sh by validate.js that failed the CI on invalid json schema or conformance *.json
  • fix the json of 3 jsonschema

BASH script has several issues:

  1. Doesn't failed on error, because in bash variable (like exampled_failed) updated into a while loop are not updated outside the loop, because a while loop is a subprocess, you can look at https://www.baeldung.com/linux/while-loop-variable-scope so exampled_failed are not used to detect invalid conformance vs json schema
  2. find: warning: you have specified the global option -maxdepth after the argument -type, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it. Please specify global options before other arguments.

Because 1. is a symptom of the limit of bash for this script, and the tools already require the javascript stack (nodejs/bun/...) I replace the validate.sh by validate.js with the fix (see CI that failed)

FIX #284

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

BASH script has several issues:

1. Doesn't failed on error, because in bash variable (like
  `exampled_failed`) updated into a while loop are not updated outside
  the loop, because a while loop is a subprocess, you can look at
  https://www.baeldung.com/linux/while-loop-variable-scope
2. find: warning: you have specified the global option -maxdepth after
  the argument -type, but global options are not positional, i.e.,
  -maxdepth affects tests specified before it as well as those specified
  after it.  Please specify global options before other arguments.
 
 Because 1. is a symptom of the limit of bash for
 this script, and the tools already require the javascript
 stack (nodejs/bun/...) I replace the validate.sh by validate.js
 
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
@davidB davidB force-pushed the fix-conformance-validation branch from 12eae26 to 9920267 Compare January 8, 2026 14:04
…ext.specversion`

Signed-off-by: David Bernard <david.bernard.31@gmail.com>
@davidB davidB marked this pull request as ready for review January 8, 2026 14:09
@davidB davidB requested a review from a team as a code owner January 8, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: 3 json schemas in spec-0.5 and main branch list context.version as a required field instead of context.specversion

1 participant