Skip to content

Use jsonschema only as a dev-dependency#750

Merged
Shnatsel merged 8 commits intoCycloneDX:mainfrom
Shnatsel:test-only-schema
Aug 6, 2024
Merged

Use jsonschema only as a dev-dependency#750
Shnatsel merged 8 commits intoCycloneDX:mainfrom
Shnatsel:test-only-schema

Conversation

@Shnatsel
Copy link
Contributor

Depends on #749

Fixes #741

Also add exclude directives to Cargo.toml to cut the tarball size in half.

You'd think you could just stick #[cfg(test)] on a module and call it a day, but #[cfg(test)] isn't actually set for the main crate when running integration tests. Making a separate crate for the test utils is the least clunky option: https://stackoverflow.com/a/44545091/585725

Shnatsel added 6 commits July 17, 2024 03:46
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…ed as a dev-dependency

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…lonedx-bom is fetched as a dependency. Brings down the tarball size from 3MB to somethig sane.

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
@Shnatsel Shnatsel requested a review from a team as a code owner July 17, 2024 04:20
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
@Shnatsel Shnatsel merged commit 03a7d27 into CycloneDX:main Aug 6, 2024
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.

Move JSON schema validation into #[test] scope

2 participants