Skip to content

Commit 193d59f

Browse files
committed
Added static field to test
1 parent a241356 commit 193d59f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

unit_tests/sources/declarative/schema/test_dynamic_schema_loader.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,19 @@
6565
"paginator": {"type": "NoPagination"},
6666
},
6767
"schema_transformations": [
68+
{
69+
"type": "AddFields",
70+
"fields": [
71+
{
72+
"type": "AddedFieldDefinition",
73+
"path": ["StaticField"],
74+
"value": "{{ {'type': ['null', 'string']} }}",
75+
}
76+
],
77+
},
6878
{
6979
"type": "KeysToSnakeCase",
70-
}
80+
},
7181
],
7282
"schema_type_identifier": {
7383
"schema_pointer": ["fields"],
@@ -237,6 +247,7 @@ def test_dynamic_schema_loader_manifest_flow():
237247
"id": {"type": ["null", "integer"]},
238248
"first_name": {"type": ["null", "string"]},
239249
"description": {"type": ["null", "string"]},
250+
"static_field": {"type": ["null", "string"]},
240251
},
241252
}
242253

0 commit comments

Comments
 (0)