How to Retrieve the Name of a Type Programmatically? #263
Unanswered
Benny Neugebauer (bennycode)
asked this question in
Q&A
Replies: 1 comment
|
can you further share your code snippets. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The
createTypeScriptJsonValidatorfunction requires the name of a JSON target type from the schema. If I rename a type in the schema, I must update the corresponding JSON target type string. Failing to do so will result in the following error:Is there a way to programmatically obtain the name of a type without manually typing the string? Perhaps using reflection metadata or something similar?
All reactions