Skip to content

TypeScript CodeGeneration checks AllowAdditionalProperties#1412

Merged
RicoSuter merged 1 commit into
RicoSuter:masterfrom
cbalisky:feature/typescript-additional-properties
Sep 16, 2022
Merged

TypeScript CodeGeneration checks AllowAdditionalProperties#1412
RicoSuter merged 1 commit into
RicoSuter:masterfrom
cbalisky:feature/typescript-additional-properties

Conversation

@cbalisky

Copy link
Copy Markdown
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
Copy Markdown

@RicoSuter is that something that can be merged?

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

Copy link
Copy Markdown
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