-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
docs: clarify namespace in ABNF #48
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jan Kowalleck <[email protected]>
local:information_security_classification | ||
local:team_responsible | ||
``` | ||
|
||
### ABNF for Official CycloneDX Property Names | ||
|
||
``` | ||
property-name = 1*(namespace ":") name | ||
```ABNF |
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.
|
||
namespace = 1*namechar | ||
|
||
name = 1*namechar | ||
name = 1*namechar [":" name] |
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.
Alternative writing would be :
name = 1*namechar
name =/ name ":" name
Maybe it should be reworded instead? Instead of |
re: #48 (comment) then why not call these things exactly like that? how do you like te following? property-name = name
property-name =/ namespace ":" 1*(sub-namespace ":") name
namespace = 1*namechar
sub-namespaces = 1*namechar
name = 1*namechar
; ... |
i found the docs confusing.
in the current ABNF it reads
the problem i saw: the namespace is used multiple time, so if i registered a namespace, how would i use it multiple times?
Here is a fix.