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

TypeScript CodeGeneration checks AllowAdditionalProperties #1412

Merged

Conversation

cbalisky
Copy link
Contributor

Code generation for TypeScript doesn't currently respect the AllowAdditionalProperties or AdditionalPropertiesSchema values. Current template code already has relevant syntax when HasIndexerProperty is set to true. HasIndexerProperty is only referenced by the Liquid template and is only used in ways that allows for additional properties in classes/interfaces, so I simply modified the getter for HasIndexerProperty to check the additional properties

@pixellos
Copy link

@RicoSuter is that something that can be merged?

@RicoSuter RicoSuter merged commit d9d715a into RicoSuter:master Sep 16, 2022
@RicoSuter
Copy link
Owner

Thanks for the PR.

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.

3 participants