We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0772e3e commit 3e09b85Copy full SHA for 3e09b85
infrahub_sdk/schema/main.py
@@ -231,7 +231,11 @@ def mandatory_input_names(self) -> list[str]:
231
232
@property
233
def mandatory_attribute_names(self) -> list[str]:
234
- return [item.name for item in self.attributes if not item.optional and item.default_value is None]
+ return [
235
+ item.name
236
+ for item in self.attributes
237
+ if (not item.optional and item.default_value is None) and not item.read_only
238
+ ]
239
240
241
def mandatory_relationship_names(self) -> list[str]:
0 commit comments