Skip to content

[DRAFT] refactor: metadata distribution to be an object #653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: 1.7-dev
Choose a base branch
from

Conversation

jkowalleck
Copy link
Member

@jkowalleck jkowalleck commented Jun 16, 2025

Refactored metadata.distribution to be more verbose in its name, and made it more versatile by converting it to an "object" with "TLP" as a property.

caused by #603 (comment)

@jkowalleck jkowalleck added this to the 1.7 milestone Jun 16, 2025
@jkowalleck jkowalleck requested a review from a team as a code owner June 16, 2025 09:42
@jkowalleck
Copy link
Member Author

@prabhu @anthonyharrison what do you think, does this refactor make sense to you?

Signed-off-by: Jan Kowalleck <[email protected]>
@jkowalleck jkowalleck changed the title refactor: metadata distribution object [DRAFT] refactor: metadata distribution object Jun 16, 2025
@jkowalleck jkowalleck changed the title [DRAFT] refactor: metadata distribution object [DRAFT] refactor: metadata distribution to be an object Jun 16, 2025
"title": "Distribution",
"description": "The Traffic Light Protocol (TLP) classification that controls the sharing and distribution of the data that the BOM describes.",
"$ref": "#/definitions/tlpClassification"
"distributionConstraints": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about distributionTerms or sharingPolicies rather than constraints?

@@ -559,6 +559,11 @@ enum LicensingTypeEnum {
}

message Metadata {
message DistributionConstraints {
// The Traffic Light Protocol (TLP) classification that controls the sharing and distribution of the data that the BOM describes.
optional TlpClassification tlp = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tlpClassification or tlpLabel is a bit verbose but could be easy to understand without the need for a help text.

Signed-off-by: Jan Kowalleck <[email protected]>
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.

2 participants