Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json_checker - recursively validate dictionary while ignoring non-string types #946

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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