bug: Read-only attributes (i.e computed_attribute
) are part of the schema.mandatory_input_name
#268
Labels
priority/2
This issue stalls work on the project or its dependents, it's a blocker for a release
type/bug
Something isn't working as expected
Component
No response
Infrahub SDK version
1.7.1
Current Behavior
In our SDK, we have some functions
infrahub-sdk-python/infrahub_sdk/schema/main.py
Line 219 in 0d491c0
Those verified if a given attribute is optional and if there is a default_value, but not if the attribute is read_only.
Expected Behavior
I would expect the read_only attribute to not be return as part of the "mandatory_input_names"
Steps to Reproduce
Using the demo-schema and demo-data
Run the script below :
you should see
['computed_description', 'type', 'name', 'site']
With
computed_description
being a computed_attribute, mandatory based on a jinja2Additional Information
No response
The text was updated successfully, but these errors were encountered: