Hi there - just getting started with Stoplight and trying to port over some existing documentation. Here are 3 quick points that I’m currently a little stuck on:
- It seems in the response definitions, you can only have one example for each response code (new examples overwrite the existing one). For some endpoints we want to document a couple of potential responses that would all have a 200 code, depending on the parameters supplied. Is that possible?
- I’m trying to use referenced parameters to avoid duplication, but when I link parameters, the
requiredtoggle becomes greyed out. How can I mark these parameters as required?
- I’m marking some fields as dates, but can I also explicitly give the date format? I’ve generally only been using regex in the
patternfield, but is it OK to also use that to show something like
Thanks in advance!