Skip to content

Conversation

@jaypipes
Copy link
Member

@jaypipes jaypipes commented Nov 3, 2025

Adds a new api.DefaultsHandler interface that plugins must now implement. This api.DefaultsHandler inherits from yaml.Unmarshaler and exposes another Merge() method that accepts a map of variable override defaults received from scenario.WithDefaults() and merges those values with whatever the plugin returns from its Defaults() method.

Issue #68

@jaypipes jaypipes force-pushed the scenario-set-defaults branch 2 times, most recently from c158b41 to 0b4ab8c Compare November 3, 2025 22:32
Adds a new `api.DefaultsHandler` interface that plugins must now
implement. This `api.DefaultsHandler` inherits from `yaml.Unmarshaler`
and exposes another `Merge()` method that accepts a map of variable
override defaults received from `scenario.WithDefaults()` and merges
those values with whatever the plugin returns from its `Defaults()`
method.

Issue #68

Signed-off-by: Jay Pipes <[email protected]>
@jaypipes jaypipes force-pushed the scenario-set-defaults branch from 0b4ab8c to ecc3374 Compare November 3, 2025 22:34
@jaypipes jaypipes merged commit c6dd6b5 into gdt-dev:main Nov 3, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant