Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
23.35k stars 2.29k forks source link

Display conditional application of subschemas through the use of dependentRequired #2538

Open jmacelroy opened 4 months ago

jmacelroy commented 4 months ago

Describe the problem to be solved Display conditional application of subschemas through the use of dependentRequired would be great to show in the UI.

Describe the solution you'd like There should be some indication on the UI when dependentRequired is used as part of json schema. I'm not sure exactly how it would be displayed but it might be similar to what is used for allOf or anyOf and required keywords.

See a related issue on the cli that shows an example of this feature being used.