Using @example
with a Field Reference from Another Model
#5835
Unanswered
akishichinibu
asked this question in
Q&A
Replies: 1 comment
-
Thank you. Filed #5850 |
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
-
https://typespec.io/playground/?c=QGV4YW1wbGUoI3sKICBmaWVsZDogImZvbyIsCn0pCm1vZGVsIFggyx1zdHJpbmc7Cn0KCs49cmVm0jtZxTvFG1guxULEOg%3D%3D&e=%40typespec%2Fopenapi3&options=%7B%7D
I have the following code:
The second
ref: "foo"
in example will cause an error.Is it a syntax issue or a TypeSpec bug with
@example
?Use case: I want to reuse a part of model in another operation and attach a new example in the spec.
Beta Was this translation helpful? Give feedback.
All reactions