Skip to content

feat: Updated generated types#32

Closed
eddie-knight wants to merge 4 commits intogemaraproj:mainfrom
eddie-knight:feat/schema-changes
Closed

feat: Updated generated types#32
eddie-knight wants to merge 4 commits intogemaraproj:mainfrom
eddie-knight:feat/schema-changes

Conversation

@eddie-knight
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Eddie Knight <knight@linux.com>
@eddie-knight eddie-knight requested a review from a team as a code owner March 19, 2026 02:21
@eddie-knight eddie-knight marked this pull request as draft March 19, 2026 02:41
Signed-off-by: Eddie Knight <knight@linux.com>
Signed-off-by: Eddie Knight <knight@linux.com>
@eddie-knight eddie-knight marked this pull request as ready for review March 19, 2026 03:47
@eddie-knight eddie-knight requested a review from jpower432 March 19, 2026 03:47
Comment thread control_catalog_yaml.go

// UnmarshalYAML allows decoding control catalogs from older/alternate YAML schemas.
// It supports mapping `families` -> `groups`.
func (c *ControlCatalog) UnmarshalYAML(data []byte) error {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not blocking, but I have been thinking it could be useful to implement functionality to migrate between versions.

Comment thread guideline_yaml.go

// UnmarshalYAML allows decoding guidance from older/alternate YAML schemas.
// In particular, it supports using `family` instead of the struct's `group` key.
func (g *Guideline) UnmarshalYAML(data []byte) error {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We have this for Guideline. I don't see one for Control.

Copy link
Copy Markdown
Contributor

@jpower432 jpower432 left a comment

Choose a reason for hiding this comment

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

Add a couple suggestions. I think it would be good to refactor the UnmarshalYAML approaches eventually to dedicate migration logic, the shadow/superset structs could be hard to maintain.

@eddie-knight eddie-knight marked this pull request as draft March 19, 2026 12:26
Signed-off-by: Eddie Knight <knight@linux.com>
@jpower432
Copy link
Copy Markdown
Contributor

Add a PR to your branch eddie-knight#2 to update to the latest CUE module

@jpower432
Copy link
Copy Markdown
Contributor

@eddie-knight Should we continue with this PR or open a new one for the latest release?

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants