Enum const from TypeSpec? #4038
Unanswered
Denis (rhodee)
asked this question in
Q&A
Replies: 1 comment 5 replies
|
Do you want to do that Playground import "@typespec/json-schema";
using TypeSpec.JsonSchema;
@jsonSchema
namespace Schemas;
model Person {
thisIsAConst: "abc";
}
|
5 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.
I would like to generate a const enum of the JSON schema from the json schema emitter. What options do we currently have to do this within Typespec?
All reactions