-
-
Notifications
You must be signed in to change notification settings - Fork 68
[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
base: 1.7-dev
Are you sure you want to change the base?
Conversation
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
@prabhu @anthonyharrison what do you think, does this refactor make sense to you? |
Signed-off-by: Jan Kowalleck <[email protected]>
"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": { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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]>
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)