feat(cli): minify property domain in template space - #1290
Merged
AlessandroPomponio merged 1 commit intoJul 28, 2026
Conversation
Signed-off-by: Alessandro Pomponio <alessandro.pomponio1@ibm.com>
christian-pinto
approved these changes
Jul 28, 2026
AlessandroPomponio
deleted the
ap_362_minify_property_domain_template_space
branch
July 28, 2026 08:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reduces noise in the
ado template spaceCLI output by minifying property domain definitions — removing redundant fields (variableType, null-valueddomainRange,interval,probabilityFunction.parameters) so the generated template YAML contains only the information a user actually needs to fill in.Resolves #362
High-level Changes
exclude_none=Trueandminimize_outputserialisation context when rendering a space template.serialise_pydantic_model) accepts new optional parameters (context,exclude_none,exclude_unset,exclude_defaults) and forwards them to the YAML serialiser.variableTypeor null-valued domain fields.Impact
Users running
ado template spacewill 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.