You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,16 @@
2
2
3
3
All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
5
+
## 4.1.0 - 2025-02-17
6
+
7
+
_Full changeset and discussions: [#1134](https://github.com/OpenTermsArchive/engine/pull/1134)._
8
+
9
+
> Development of this release was supported by the [French Ministry for Foreign Affairs](https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/diplomatie-numerique/) through its ministerial [State Startups incubator](https://beta.gouv.fr/startups/open-terms-archive.html) under the aegis of the Ambassador for Digital Affairs.
10
+
11
+
### Added
12
+
13
+
- Add `ota validate metadata` command to the CLI to validate the collection metadata file
14
+
5
15
## 4.0.2 - 2025-02-04
6
16
7
17
_Full changeset and discussions: [#1133](https://github.com/OpenTermsArchive/engine/pull/1133)._
// Mocha catches unhandled rejection from the user code and re-emits them to the process (see https://github.com/mochajs/mocha/blob/master/lib/runner.js#L198)
15
+
// Mocha catches unhandled rejection from the user code and re-emits them to the process
16
16
process.on('unhandledRejection',reason=>{
17
17
// Re-throw them so that the validation command fails in these cases (for example, if there is a syntax error when parsing JSON declaration files)
// Mocha catches unhandled rejection from the user code and re-emits them to the process (see https://github.com/mochajs/mocha/blob/master/lib/runner.js#L198)
16
-
process.on('unhandledRejection',reason=>{
17
-
// Re-throw them so that the validation command fails in these cases (for example, if there is a syntax error when parsing JSON declaration files)
18
-
throwreason;
38
+
process.on('unhandledRejection',reason=>{// Mocha catches unhandled rejection from the user code and re-emits them to the process
39
+
throwreason;// Re-throw them so that the validation command fails in these cases (for example, if there is a syntax error when parsing JSON declaration files)
19
40
});
20
41
21
42
program
22
43
.name('ota validate')
44
+
.description('Validate terms declarations and metadata files');
45
+
46
+
program.command('declarations')
23
47
.description('Run a series of tests to check the validity of terms declarations')
24
48
.option('-s, --services [serviceId...]','service IDs of services to validate')
25
49
.option('-t, --types [termsType...]','terms types to validate')
26
50
.option('-m, --modified','target only services modified in the current git branch')
27
-
.option('-o, --schema-only','much faster check of declarations, but does not check that the documents are actually accessible');
51
+
.option('-o, --schema-only','much faster check of declarations, but does not check that the documents are actually accessible')
delay: true,// as the validation script performs an asynchronous load before running the tests, the execution of the tests are delayed until run() is called
31
-
failZero: true,// consider that being called with no service to validate is a failure
32
-
});
56
+
constmocha=createMocha({delay: true});// as the validation script performs an asynchronous load before running the tests, the execution of the tests are delayed until run() is called
0 commit comments