Skip to content

fix: Support writing keys with invalid chars#255

Open
tmccombs wants to merge 1 commit intoamplify-education:mainfrom
tmccombs:key-output
Open

fix: Support writing keys with invalid chars#255
tmccombs wants to merge 1 commit intoamplify-education:mainfrom
tmccombs:key-output

Conversation

@tmccombs
Copy link

@tmccombs tmccombs commented Feb 7, 2026

This actually fixes a few of things related to expressions for object keys:

  1. It allows they keys contain characters that aren't valid as identifiers, if the key is a plain string, for example: ":"
  2. It removes the need for superflouous parenthesis around expresions in the keys
  3. It no longer puts double quotes around an interpolated string in the key.

The second two were actually kind of side-affects of my fix for 1.

If we want to preserve the previous behavior for 2 and 3, I think it wouldn't be too hard to do though.

This actually fixes a few of things related to expressions for
object keys:
1. It allows they keys contain characters that aren't valid as identifiers, if the
   key is a plain string, for example: ":"
2. It removes the need for superflouous parenthesis around expresions in the keys
3. It no longer puts double quotes around an interpolated string in the key.

The second two were actually kind of side-affects of my fix for 1.

If we want to preserve the previous behavior for 2 and 3, I think it wouldn't be too hard to do
though.
@tmccombs tmccombs requested a review from a team as a code owner February 7, 2026 07:59
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