How to provide request / response operation examples having common parameters #4695
-
I have the following typespec code:
Having CommonParameters.requestId as a required header I'm not able to provide an example which describes only a body, but compiler requires me to provide the fields from CommonParameters model. Is the a way to work this out? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
timotheeguerin
Oct 11, 2024
Replies: 1 comment
-
opExample represent the cannonical example of your operation. Your operation takes requestId as a required parameter so it should be provided in the example as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
forik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
opExample represent the cannonical example of your operation. Your operation takes requestId as a required parameter so it should be provided in the example as well.