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

[BUG] There appears to be no way to set the DataSchema attribute #55

Open
oising opened this issue Jul 22, 2024 · 4 comments
Open

[BUG] There appears to be no way to set the DataSchema attribute #55

oising opened this issue Jul 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@oising
Copy link

oising commented Jul 22, 2024

For a JSON bodied event, I want to set the CE DataSchema attribute. Neither New-CloudEvent, Set-CloudEVentData nor Set-CloudEventJsonData support passing -DataSchema. Is this an oversight?

@oising oising added the bug Something isn't working label Jul 22, 2024
@oising
Copy link
Author

oising commented Jul 22, 2024

As a workaround, I can do:

$ce = new-cloudevent -id ... | set-cloudeventjsondata -data "..."
$ce.DataSchema = "https://schema..."

But this breaks the flow.

@embano1
Copy link
Member

embano1 commented Jul 22, 2024

Hi @oising, some of the core maintainers for this project have left VMware/Broadcom so I'm not sure if there's someone able to fix this behavior. cc-ing @lamw @dmilov if they see a solution here?

@oising
Copy link
Author

oising commented Jul 22, 2024

I can send a PR

@embano1
Copy link
Member

embano1 commented Jul 22, 2024

That'd be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants