Skip to content
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

Add support for metadata/Addon-Data (key:value) #1

Open
kmindi opened this issue Aug 19, 2015 · 2 comments
Open

Add support for metadata/Addon-Data (key:value) #1

kmindi opened this issue Aug 19, 2015 · 2 comments

Comments

@kmindi
Copy link

kmindi commented Aug 19, 2015

There should be generic support for the specified metadata.

Both key and value must consist of non-whitespace characters, which are not colons. Only one colon separates the key and value.

The metadata could be contained in a list in the item like the context/project-arrays:

item.metadata = { 'key':'value', 'key2':'value' }
@evanp
Copy link
Contributor

evanp commented Mar 21, 2018

Can it also support multiple values in the keys as an array? So this:

2018-03-21 Do something tag:foo tag:bar id:doit

would give:

item.metadata = { 'tag': ['foo', 'bar'], 'id': 'doit' }

I can also see a couple of other ways of working with multiple values: just using the last one, or always using an array. I think multiple values is very rare, though.

@evanp
Copy link
Contributor

evanp commented Mar 21, 2018

Should it also have addMetadata(key, value) and removeMetadata(key) ?

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

No branches or pull requests

2 participants