How can I generate openapi json schema from typespec schema? #3229
Replies: 1 comment
-
Do you want to emit openapi3 or json schema? those are 2 different document(s) and emitters in TypeSpec For openapi3 you should use the |
Beta Was this translation helpful? Give feedback.
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.
-
I'm asking because the emit options does not seem to work for me. I'm trying:
npx tsp compile docs/main.tsp --emit="@typespec/json-schema"
and for example my main.tsp looks like:
Beta Was this translation helpful? Give feedback.
All reactions