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

feat: first implementation of cdevents-sdk from json-schema #8

Merged
merged 34 commits into from
Feb 1, 2024

Commits on Jan 30, 2024

  1. revert: remove useless scaffolded code

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    36ec9e0 View commit details
    Browse the repository at this point in the history
  2. feat: first working basic generator

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    4353836 View commit details
    Browse the repository at this point in the history
  3. feat: first working basic cdevents implementation

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    82bfe86 View commit details
    Browse the repository at this point in the history
  4. refactor: rename crates cdevents into cdevents-sdk

    to aligned with java sdk and the crates `cloudevents-sdk`
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    ff776e4 View commit details
    Browse the repository at this point in the history
  5. refactor: replace generation of json object by named types for Subjec…

    …ts content
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    a25f150 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f727547 View commit details
    Browse the repository at this point in the history
  7. fix: use the context.type (instead of $id) to define the module name

    resulting in a more aligned file naming with spec (schema and example)
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    085b6ed View commit details
    Browse the repository at this point in the history
  8. feat: use more precise type for uri & datetime than String

    - uri => fluent_uri::Uri<String>
    - uri-referece => fluent_uri::Uri<String>
    - datetime => time::OffsetDateTime
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    79551ca View commit details
    Browse the repository at this point in the history
  9. build(deps): remove useless "serde_with"

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    1428d48 View commit details
    Browse the repository at this point in the history
  10. build: enable deny_unknown_fields

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    479cb5d View commit details
    Browse the repository at this point in the history
  11. build: apply some recommendation from clippy

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    3a51cb9 View commit details
    Browse the repository at this point in the history
  12. style: reformat

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    e738b7f View commit details
    Browse the repository at this point in the history
  13. ci: setup ci & linters

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    59210a6 View commit details
    Browse the repository at this point in the history
  14. ci: avoid to install cargo-binstall from source

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    b63b9d6 View commit details
    Browse the repository at this point in the history
  15. feat: add support for PartialEq, Eq on CDEvent, use wrapper for…

    … `Uri` and `UriReference`
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    c286321 View commit details
    Browse the repository at this point in the history
  16. feat: introduce support for cloudevents

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    8d5586f View commit details
    Browse the repository at this point in the history
  17. feat: enforce mutation to only create coherente cdevents (type match …

    …subject.content)
    
    - hide context
    - provide accessor and mutator to restrict access
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    ba31fb9 View commit details
    Browse the repository at this point in the history
  18. build: migrate to mise (formaly rtx)

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    7efb1c4 View commit details
    Browse the repository at this point in the history
  19. revert: remove CI (wrong PR)

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    449948d View commit details
    Browse the repository at this point in the history
  20. style: update typo, remove commented code, move comments,... apply re…

    …view suggestion
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    2a0d732 View commit details
    Browse the repository at this point in the history
  21. build: update Makefile (to replace justfile)

    - remove `--locked`, no command to generate .lock,
        .lock should not be committed for a lib,
        and check with .lock is dangerous for a lib
    - add `generate` target
    - add `test` target
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    865ebf2 View commit details
    Browse the repository at this point in the history
  22. style: reformat Cargo.toml

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    de04bb2 View commit details
    Browse the repository at this point in the history
  23. build: add missing tool to mise configuration

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    e0d9e94 View commit details
    Browse the repository at this point in the history
  24. feat: string enum are defined as rust Enum

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    184e70f View commit details
    Browse the repository at this point in the history
  25. feat(testkit): provide proptest 's arbitraies to generate samples

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    d952752 View commit details
    Browse the repository at this point in the history
  26. test: add test to validate against jsonschema: examples (from spec), …

    …generated samples
    
    - generate samples with arbitraries (proptest)
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    ad8f665 View commit details
    Browse the repository at this point in the history
  27. fix: enforce non-empty string for id and hardcode mapping between c…

    …ontext.type and subject.type
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    97b6a51 View commit details
    Browse the repository at this point in the history
  28. build: change clipy configuration to support workspace and features

    - avoid clippy genarte wrong warning about useless stuff
    - apply some clippy recommandation
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    799cd26 View commit details
    Browse the repository at this point in the history
  29. build: exclude generator from crago-deny scope

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    a7ca3cc View commit details
    Browse the repository at this point in the history
  30. ci: run tests and fix clippy call

    - clippy & tests need git submodules content
    
    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    41480b1 View commit details
    Browse the repository at this point in the history
  31. ci: disable test (until fix)

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    25e2dcc View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. ci(revert): restore lint_check to lint actions only

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    9bc4e33 View commit details
    Browse the repository at this point in the history
  2. refactor: remove & clean

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    7ead28c View commit details
    Browse the repository at this point in the history
  3. build: add check that generated code is committed

    Signed-off-by: David Bernard <[email protected]>
    davidB committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    6c72ab9 View commit details
    Browse the repository at this point in the history