[BUG] Use enums + Enum on discriminator key cause deserialization error

Open
#2,913 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Romakita is already working on this.

Since Dec 3, 2024.

Assessment

This issue has not been assessed yet.

Description

:bug: bug wontfix
Describe the bug
@DiscriminatorValue(EventType.EVENT)
class MyChild extends Base {
  @Enum(EventType)
  override eventType: EventType = EventType.EVENT
}

rel: See https://github.com/pxr-tech/tsed-sample/pull/4/files

To Reproduce

TBD

Expected behavior

TDB

Code snippets

No response

Repository URL example

No response

OS

macOs

Node version

Node v20

Library version

v7 - v8

Additional context

No response

Dominant language
TypeScript
Stars
3.1k
Forks
295
Avg merge
1d 16h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tsedio/tsed

All issues in tsedio/tsed

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.