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

Some suggestions in Example section #334

Merged
merged 3 commits into from
Nov 1, 2018
Merged

Some suggestions in Example section #334

merged 3 commits into from
Nov 1, 2018

Conversation

fabiojose
Copy link
Contributor

@fabiojose fabiojose commented Oct 25, 2018

Signed-off-by: Fabio José fabiojose@gmail.com

PR related to issue #332

Closes: #332

@duglin
Copy link
Collaborator

duglin commented Oct 25, 2018

@fabiojose added "Closes: #332" to the first comment so github will close it automagically - hope that's ok.

spec.md Outdated Show resolved Hide resolved
@fabiojose
Copy link
Contributor Author

@duglin, @cneijenhuis, this PR is that ok to you?

@duglin
Copy link
Collaborator

duglin commented Oct 29, 2018

LGTM

minor request, s/Example/Examples/

@@ -198,6 +198,9 @@ help intermediate gateways determine how to route the events.
semantics behind the data encoded in the URI is event producer defined.
* Constraints:
* REQUIRED
* Examples
* urn:event:from:cloudevents/spec/pull/123
* urn:event:from:myapi/resourse/123
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of two urn examples, what do you think about having each for a different scheme?

  • https://github.com/cloudevents/spec/pull/123
  • urn:event:from:myapi/resourse/123
  • mailto:cncf-wg-serverless@lists.cncf.io

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point @cneijenhuis, I will do like this.

spec.md Outdated
@@ -290,3 +293,24 @@ The following example shows a CloudEvent serialized as JSON:
"data" : "<much wow=\"xml\"/>"
}
```
The following example shows a CloudEvent with JSON as `data` and relative URI in `source`:
Copy link
Contributor

Choose a reason for hiding this comment

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

In the spirit of keeping PRs as small as possible, I'd suggest to remove the second example (and rather open up a follow-on PR).

Otherwise, this PR mixes two topics:

  • Should we enforce the URI scheme, or should we loosen it up to URI-references?
  • What is a good second example?

These aren't really related. Personally, I think the second example should differ more from the first one - but it is a bit off-topic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, understood!

I will keep this PR small and remove the second example.

@duglin
Copy link
Collaborator

duglin commented Oct 30, 2018

@fabiojose can you sign your commits?

@fabiojose
Copy link
Contributor Author

@duglin my bad!

But now the ci is not passing, because this:

./extensions/distributed-tracing.md: Can't load url: https://w3c.github.io/distributed-tracing/report-trace-context.html
./extensions/distributed-tracing.md: Can't load url: https://w3c.github.io/distributed-tracing/report-trace-context.html#field-value
./extensions/distributed-tracing.md: Can't load url: https://w3c.github.io/distributed-tracing/report-trace-context.html#header-value

@duglin
Copy link
Collaborator

duglin commented Oct 31, 2018

yep - I'm trying to find the new URLs for those - the w3c site did some reorg the other day

@duglin
Copy link
Collaborator

duglin commented Nov 1, 2018

LGTM

@duglin duglin added the v0.2 label Nov 1, 2018
@duglin
Copy link
Collaborator

duglin commented Nov 1, 2018

@fabiojose can you rebase?

@duglin
Copy link
Collaborator

duglin commented Nov 1, 2018

Approved on 11/1 call - so after rebase we can merge

Signed-off-by: Fabio José <fabiojose@gmail.com>
- Add examples in source section and update the JSON examples.

Signed-off-by: Fabio José <fabiojose@gmail.com>
Remove the second example of serialized JSON and update the `source` examples list.

Signed-off-by: Fabio José <fabiojose@gmail.com>
@duglin
Copy link
Collaborator

duglin commented Nov 1, 2018

never mind - I was able to do it. :-)
Hope that's ok.

@duglin duglin merged commit a98078e into cloudevents:master Nov 1, 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