Skip to content

Commit

Permalink
Fix invalid default value for secrets filed (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-turbaszek authored May 8, 2024
1 parent f38661e commit 81f7dd8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/snowflake/cli/api/project/schemas/snowpark/callable.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Callable(UpdatableModel):
)
secrets: Optional[Dict[str, str]] = Field(
title="Assigns the names of secrets to variables so that you can use the variables to reference the secrets",
default=[],
default={},
)
imports: Optional[List[str]] = Field(
title="Stage and path to previously uploaded files you want to import",
Expand Down
64 changes: 32 additions & 32 deletions tests/project/__snapshots__/test_config.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -235,8 +235,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -256,8 +256,8 @@
'returns': 'string',
'runtime': None,
'schema_name': 'custom_schema',
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -277,8 +277,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -298,8 +298,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -319,8 +319,8 @@
'returns': 'string',
'runtime': None,
'schema_name': 'custom_schema',
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand Down Expand Up @@ -400,8 +400,8 @@
'returns': 'string',
'runtime': '3.10',
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand Down Expand Up @@ -487,8 +487,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -509,8 +509,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -531,8 +531,8 @@
'returns': 'string',
'runtime': None,
'schema_name': 'custom_schema',
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -553,8 +553,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -575,8 +575,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -597,8 +597,8 @@
'returns': 'string',
'runtime': None,
'schema_name': 'custom_schema',
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand Down Expand Up @@ -675,8 +675,8 @@
'returns': 'string',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand All @@ -697,8 +697,8 @@
'returns': 'string',
'runtime': '3.10',
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': '',
}),
]),
Expand Down Expand Up @@ -729,8 +729,8 @@
'returns': 'variant',
'runtime': None,
'schema_name': None,
'secrets': list([
]),
'secrets': dict({
}),
'signature': list([
dict({
'arg_type': 'string',
Expand Down

0 comments on commit 81f7dd8

Please sign in to comment.