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.
2 parents 4312648 + be0d82a commit 07260ceCopy full SHA for 07260ce
scaleway-core/scaleway_core/utils/resolve_one_of.py
@@ -28,6 +28,13 @@ def resolve_one_of(
28
# Get the first non-empty default
29
for possibility in possibilities:
30
if possibility.default is not None:
31
+ if possibility.marshal_func is not None:
32
+ # When no actual value, call with None as value
33
+ return {
34
+ possibility.param: possibility.marshal_func(
35
+ None, possibility.default
36
+ )
37
+ }
38
return {possibility.param: possibility.default}
39
40
# If required, raise an error
0 commit comments