Open wighawag opened 3 weeks ago
Hi @wighawag , I'm also working on oneOf
properties in #122 .
Regarding prefixItems
, how would you expect to see it reflected in the UI? I don't see anything special for these properties in Scalar for example. So far, vitepress-openapi
and Scalar
display your Schema almost identically:
I'd appreciate your feedback. Thanks!
prefixItems are the required item in an array
So input is only valid if it contains them. Ie empty array is invalid.
What you got so far is acceptable in my opinion as a first step.
Displaying such item might indeed be complicated, especially since you would need to support any kind of such items, even if each prefixItem is of different types
Actually, this common for json rpc params array
Maybe you could support it by showing the list of each required item?
Current behavior
My openapi spec contains oneOf and prefixItems
for oneOf, it seems vitepress-openapi only show the first possible type
for prefixItems it just do not shows it
Desired behavior
No response
Reproduction
No response
Steps to reproduce
Logs and Error Messages
No response
Other Information
No response