Skip to content

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

Open

Description

@oising

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?

Activity

  1. oising commented on Jul 22, 2024

    @oising
    Author

    As a workaround, I can do:

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

    But this breaks the flow.

  2. embano1 commented on Jul 22, 2024

    @embano1
    Member

    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?

  3. oising commented on Jul 22, 2024

    @oising
    Author

    I can send a PR

  4. embano1 commented on Jul 22, 2024

    @embano1
    Member

    That'd be great!

  5. duglin commented on Feb 4, 2026

    @duglin
    Contributor

    @oising did you still want to do a PR?

  6. oising commented on Feb 4, 2026

    @oising
    Author

    @oising did you still want to do a PR?

    Hey, yes, I can do that. Apologies, I just moved on to something else and forgot. Give me a few days.

  7. oising commented on Nov 6, 2026

    @oising
    Author

    Dear lord, I competely forgot. Again.

  8. duglin commented on Nov 6, 2026

    @duglin
    Contributor

    tha's ok - that's why we have copilot :-) see #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions