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

Rust blueprint serialization issue #45

Open
niroam opened this issue Feb 8, 2022 · 0 comments
Open

Rust blueprint serialization issue #45

niroam opened this issue Feb 8, 2022 · 0 comments

Comments

@niroam
Copy link

niroam commented Feb 8, 2022

With the rust code, when building a policy the add_method uses this code to serialize the Method enum

serde_json::to_string(&method).unwrap()

this creates a policy with double quotes in the method ARN
"arn:aws:execute-api:ap-southeast-2:XXXXXXXXXX:YYYYYYYYYY/ESTestInvoke-stage/\"*\"/*"

Consider using something like this instead ?

json!(&method).as_str().unwrap()

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

No branches or pull requests

1 participant