Forum Discussion

jasonnovich's avatar
jasonnovich
Occasional Visitor
2 years ago

Looking to add discriminator dropdown to other code sample languages

Hello,

In the API I am working on there are endpoints that have multiple scenarios that the reader/programmer will want to test. The end point is the same endpoint, the difference is that each scenario sends some different keys and values. The discriminator currently can be applied to the schema for application/json and xml, but when I add other code languages like NodeJS or C# (using Redocly's x-codeSamples extension) I need to hard code the fields. Is there a way to get the same type of discriminator drop down for the other language tabs?

 

Thanks,

Jason

No RepliesBe the first to reply