Using @example with a Field Reference from Another Model
#5835
Unanswered
Zhihan WU (akishichinibu)
asked this question in
Q&A
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.
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.
All reactions