Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cdevents/sdk-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.0
Choose a base ref
...
head repository: cdevents/sdk-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.0
Choose a head ref
  • 4 commits
  • 65 files changed
  • 1 contributor

Commits on Apr 4, 2023

  1. Embed the schemas in generated files

    go:embed includes files at build time into a binary.
    It doesn't work when consuming the SDK as a go module, since
    the json files are not included in the module itself.
    
    Instead of using embed, load the json file into the template
    file and embed it directly (at generate time) into the
    generated go files.
    
    Signed-off-by: Andrea Frittoli <[email protected]>
    afrittoli committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    af5880c View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2023

  1. Add support for complex objects in content

    The generator script allows for content field to be either
    string or "References". This extends the generator to allow
    for content fields being objects, with the limitations that
    object must themselves be made of string fields alone.
    
    Templates are extended to define new structs that hold the
    object types and to use those types where needed.
    
    Signed-off-by: Andrea Frittoli <[email protected]>
    afrittoli committed Apr 26, 2023
    Configuration menu
    Copy the full SHA
    e21233f View commit details
    Browse the repository at this point in the history

Commits on May 4, 2023

  1. Update the SDK to v0.3.0

    - Structured properties are now included as pointers.
      This is required so that the "omitempty" flags does not include
      them, when empty, in the rendered JSON.
    - New test events
    - New artifact signed event
    
    Update the generator tool to support pointer objects. The full
    type is now defined in the generator tool and templates are
    simplified accordingly.
    
    Signed-off-by: Andrea Frittoli <[email protected]>
    afrittoli committed May 4, 2023
    Configuration menu
    Copy the full SHA
    7d217a8 View commit details
    Browse the repository at this point in the history
  2. Update the README, remove legacy links

    Signed-off-by: Andrea Frittoli <[email protected]>
    afrittoli committed May 4, 2023
    Configuration menu
    Copy the full SHA
    402c2f9 View commit details
    Browse the repository at this point in the history
Loading