Skip to content

Conversation

thejohnlin
Copy link

@thejohnlin thejohnlin commented Dec 11, 2017

Currently, using a Ref inside the Schema parameter to create a new apigateway.Model resource will result in an Exception from attempting to validate the dictionary via json.dumps(). This PR is an attempt to enable this use-case by only attempting json.dumps() on the values of type basestring in the dictionary.

This also seems to affect cloudwatch.Dashboard, which also uses json_checker to validate the DashboardBody property.

@thejohnlin
Copy link
Author

thejohnlin commented Dec 11, 2017

Additional tests and concise reproductions in code will be coming soon

@thejohnlin thejohnlin changed the title Recursively validate JSON while preserving helper function types APIGateway - recursively validate dictionary while preserving non-string types Dec 11, 2017
@thejohnlin thejohnlin changed the title APIGateway - recursively validate dictionary while preserving non-string types APIGateway - recursively validate dictionary while ignoring non-string types Dec 11, 2017
@thejohnlin thejohnlin changed the title APIGateway - recursively validate dictionary while ignoring non-string types json_checker - recursively validate dictionary while ignoring non-string types Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant