Skip to content

Commit 6fc0786

Browse files
authored
Json validator runtime (#645)
* docs Signed-off-by: Jan Kowalleck <[email protected]> * deps Signed-off-by: Jan Kowalleck <[email protected]> * prep structures Signed-off-by: Jan Kowalleck <[email protected]> * impl Signed-off-by: Jan Kowalleck <[email protected]> * impl Signed-off-by: Jan Kowalleck <[email protected]> * impl Signed-off-by: Jan Kowalleck <[email protected]> * impl Signed-off-by: Jan Kowalleck <[email protected]> * impl Signed-off-by: Jan Kowalleck <[email protected]> * impl Signed-off-by: Jan Kowalleck <[email protected]> * impl Signed-off-by: Jan Kowalleck <[email protected]> * docs Signed-off-by: Jan Kowalleck <[email protected]> * opt dep tests Signed-off-by: Jan Kowalleck <[email protected]> * tests Signed-off-by: Jan Kowalleck <[email protected]> * inm test Signed-off-by: Jan Kowalleck <[email protected]> * inm test Signed-off-by: Jan Kowalleck <[email protected]> * error classes Signed-off-by: Jan Kowalleck <[email protected]> * validate in serialization tests Signed-off-by: Jan Kowalleck <[email protected]> * tests Signed-off-by: Jan Kowalleck <[email protected]> --------- Signed-off-by: Jan Kowalleck <[email protected]>
1 parent d5ee5f1 commit 6fc0786

25 files changed

+1047
-64
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ written in _TypeScript_ and compiled for the target.
3030
* Support the downstream implementation of custom XML-serializers tailored to specific environments
3131
by providing an abstract base class that takes care of normalization and BomRef-discrimination.
3232
This is done, because there is no universal XML support in _JavaScript_.
33+
* Validation according to [_CycloneDX_ Specification][CycloneDX-spec].
3334

3435
## Capabilities
3536

@@ -92,6 +93,8 @@ written in _TypeScript_ and compiled for the target.
9293
* Specific to _Node.js_: implementation plugs/requires/utilizes one of the following _optional_ libraries
9394
* [xmlbuilder2](https://www.npmjs.com/package/xmlbuilder2)
9495
* ... to be continued ... (pull requests are welcome)
96+
* Validation
97+
* TODO: write proper descriptions
9598

9699
## Installation
97100

@@ -119,6 +122,10 @@ See the shipped `package.json` for version constraints.
119122

120123
* Serialization to XML on _Node.js_ requires any of:
121124
* [`xmlbuilder2`](https://www.npmjs.com/package/xmlbuilder2)
125+
* JSON validation requires all of:
126+
* [`ajv`](https://www.npmjs.com/package/ajv)
127+
* [`ajv-formats`](https://www.npmjs.com/package/ajv-formats)
128+
* [`ajv-formats-draft2019`](https://www.npmjs.com/package/ajv-formats-draft2019)
122129

123130
## Usage
124131

0 commit comments

Comments
 (0)