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 Attribute Categories section #139

Closed

Conversation

markfisher
Copy link

The added section describes the different categories of attributes (required, optional, and extensions) and provides general criteria for an attribute's inclusion in a given category.

The text was originally based off of this suggestion from @duglin: master...duglin:propguidelines

@duglin
Copy link
Collaborator

duglin commented Apr 4, 2018

@markfisher you'll need to sign your commit so the DCO check passes

@duglin
Copy link
Collaborator

duglin commented Apr 4, 2018

We're gonna have to figure out how to deal with the use of RFC keywords.... I wonder if an easy out is to put this into the README, or even into the extensions.md doc. Need to think about this one.

specification will fall into three categories:
- required
- optional
- extensions
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we seem to be dividing extensions into two categories as well:

  • Registered extensions that vendors publish to encourage interoperability of a use case
  • Private extensions

This concept was taken directly from the JWT spec where private claims may be registered claims.

Copy link
Collaborator

Choose a reason for hiding this comment

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

true - I guess originally I was thinking that we'd just talk about the stuff that might appear in our docs, but you're right, we should mention that people can do "other extensions" that this WG has no knowledge of.

itself. For example those attributes may relate to the source, the content type,
the time the event occurred, or any identifying information. Attributes that are
relevant only for certain contexts within which the event may be used will be in
the extensions category. Examples might include grouping, sampling, correlation,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I take for granted that these are extensions cases, and if they were they should certainly be registered extensions. These are all cases where multiple parts of a distributed stack need to interoperate to work correctly.

@duglin
Copy link
Collaborator

duglin commented May 8, 2018

@markfisher will you have time to finish this one up? if not, I can try to find someone else to run with it.

@markfisher
Copy link
Author

@duglin I can handle it. Did you decide if you'd prefer to keep it here but avoid RFC keywords or whether we should move it to the README?

@duglin
Copy link
Collaborator

duglin commented May 8, 2018

My preference would be to move it out of the spec since explaining what goes into each doc is broader than that one doc (meaning the spec).

@duglin
Copy link
Collaborator

duglin commented May 8, 2018

Perhaps we need some kind of Primer doc as an intro that explains all of the pieces.

@duglin
Copy link
Collaborator

duglin commented May 8, 2018

actually a Primer doc would be a good place for the Usage Scenarios section: https://github.com/cloudevents/spec/blob/master/spec.md#usage-scenarios - it feels out of place in the spec to me

@markfisher
Copy link
Author

@duglin if you want to create an initial Primer doc, I can resubmit the PR to add to that instead.

@duglin duglin added the v1.0 label May 10, 2018
@duglin
Copy link
Collaborator

duglin commented Jun 20, 2018

if #238 is adopted then I think it should cover this

@markfisher
Copy link
Author

agreed @duglin

@duglin duglin mentioned this pull request Jun 29, 2018
@duglin duglin closed this in #238 Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants