Skip to content

Add fixes for symbols and errors #3

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

Merged
merged 1 commit into from
Sep 26, 2019
Merged

Conversation

mtdowling
Copy link
Member

  1. Reserved words are now escaped in the symbol visitor to account for
    escaping reserved words in symbol references (like a list of Record
    becomes "Array<_Record>".
  2. Error structures now normalize the "message" member regardless of the
    model. This prevents typing issues with super.
  3. "message" is no longer generated as a property of SmithyException
    subtypes.
  4. Fixed a bug in how relative module imports were handled and
    simplified turning module names into file names. Now the module name
    of shapes that are generated always contains "index" to fix
    relativizing imports.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

1. Reserved words are now escaped in the symbol visitor to account for
   escaping reserved words in symbol references (like a list of Record
   becomes "Array<_Record>".
2. Error structures now normalize the "message" member regardless of the
   model. This prevents typing issues with super.
3. "message" is no longer generated as a property of SmithyException
   subtypes.
4. Fixed a bug in how relative module imports were handled and
   simplified turning module names into file names. Now the module name
   of shapes that are generated always contains "index" to fix
   relativizing imports.
@mtdowling mtdowling merged commit ddd6257 into develop Sep 26, 2019
@mtdowling mtdowling deleted the symbol-and-error-fixes branch September 27, 2019 21:29
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.

2 participants