Skip to content

feat(cli): minify property domain in template space - #1290

Merged
AlessandroPomponio merged 1 commit into
mainfrom
ap_362_minify_property_domain_template_space
Jul 28, 2026
Merged

feat(cli): minify property domain in template space#1290
AlessandroPomponio merged 1 commit into
mainfrom
ap_362_minify_property_domain_template_space

Conversation

@AlessandroPomponio

@AlessandroPomponio AlessandroPomponio commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Reduces noise in the ado template space CLI output by minifying property domain definitions — removing redundant fields (variableType, null-valued domainRange, interval, probabilityFunction.parameters) so the generated template YAML contains only the information a user actually needs to fill in.

Resolves #362

High-level Changes

  • Template command now passes exclude_none=True and minimize_output serialisation context when rendering a space template.
  • Serialiser utility (serialise_pydantic_model) accepts new optional parameters (context, exclude_none, exclude_unset, exclude_defaults) and forwards them to the YAML serialiser.
  • Tests add a new case asserting that the generated template YAML no longer contains variableType or null-valued domain fields.

Impact

Users running ado template space will receive cleaner, less cluttered YAML output. No changes to runtime behaviour, stored resources, or existing APIs — serialisation options default to their previous values, so all other call sites are unaffected.


AI Disclosure: The code and this PR description were generated using IBM Bob and reviewed manually.

Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>
@AlessandroPomponio AlessandroPomponio added the ci Enables CI integration label Jul 27, 2026
@AlessandroPomponio
AlessandroPomponio added this pull request to the merge queue Jul 28, 2026
Merged via the queue into main with commit 8c2b28b Jul 28, 2026
18 checks passed
@AlessandroPomponio
AlessandroPomponio deleted the ap_362_minify_property_domain_template_space branch July 28, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Enables CI integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): minify property domains on ado get template space

2 participants