improves the deserialization of the raw model into type-hinted python objects.
ser/de can now handle complex schemas containing arrays and objects
CloudFormation service is casting all primitive types (integer, number, boolean) into strings. This provides a hacky, but easy-to-remove-once-fixed-upstream, convertor that introspects the type hints and re-casts them back to their intended types.
This looks pretty large on the surface, but line count is predominantly test case data in tests/lib/recast_test.py and tests/lib/sample_model.py.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
improves the deserialization of the raw model into type-hinted python objects.
integer
,number
,boolean
) into strings. This provides a hacky, but easy-to-remove-once-fixed-upstream, convertor that introspects the type hints and re-casts them back to their intended types.This looks pretty large on the surface, but line count is predominantly test case data in
tests/lib/recast_test.py
andtests/lib/sample_model.py
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.