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

Update the specification.md and events.json to make both source and type eventDef properties optional #678

Merged

Conversation

cdavernas
Copy link
Member

Many thanks for submitting your Pull Request ❤️!

Please specify parts of this PR update:

  • Specification
  • Schema
  • Examples
  • Extensions
  • Roadmap
  • Use Cases
  • Community
  • TCK
  • Other

Discussion or Issue link:
#677 (comment)
#677 (comment)

What this PR does / why we need it:
Updates the specification.md and events.json to make both source and type eventDef properties optional

@@ -3271,8 +3271,8 @@ defined via the `parameters` property in [function definitions](#FunctionRef-Def
| Parameter | Description | Type | Required |
| --- | --- | --- | --- |
| name | Unique event name | string | yes |
| source | CloudEvent source | string | yes if kind is set to "consumed", otherwise no |
| type | CloudEvent type | string | yes |
| source | CloudEvent source | string | no if `type` is set, otherwise yes. If not set when `kind` is `produced`, runtimes are expected to use a default value, such as https://serverlessworkflow.io in order to comply with the [CloudEvent spec constraints](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) |
Copy link
Member

Choose a reason for hiding this comment

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

I'd say that "runtimes are expected to validate the incoming and outgoing CE to comply with CloudEvent spec constraints...". Not here, but in a paragraph after this table since this sentence suggests overall validation of CEs.

@tsurdilo tsurdilo added the change: feature New feature or request. Impacts in a minor version change label Sep 30, 2022
@tsurdilo tsurdilo added this to the v0.9 milestone Sep 30, 2022
@tsurdilo
Copy link
Contributor

tsurdilo commented Oct 8, 2022

this needs entry in roadmap md

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@tsurdilo tsurdilo merged commit acbfb8c into serverlessworkflow:main Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change: feature New feature or request. Impacts in a minor version change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants