Skip to content

[Bug]: TypeScript Emitter Framework shouldn't place additionalProperties on record types #8988

@bterlson

Description

@bterlson

This feels like an emitter-specific choice for how to represent models which extend records to me. If I want to emit an interface that represents what this looks like on the wire, I... can't?

That aside, it also presently emits just a plain record as an object type with a single property "additionalProperties" which also seems wrong - something like tags: Record<string> should probably emit as tags: { [string]: string } or even tags: Record<string, string> since there are no named properties to contend with.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions