how to change the order of display when using inheritance
hi Experts/colleagues, i'm using the the swagger UI latest version for my swagger API documentation. When using the inheritance via allOf capability, the swagger UI does not respect the order in w...
thanks!! for the work around approach. can be an alternative solution. For completeness if would be good if we have this capability supported out of the box. thanks!! again, appreciate your help and recommendation.
nandan Hi and sorry for this very late answer. I have been facing this issue in the past and I think it is very usefull to keep a trace of the discussion, in this forum, for other peoles.
Obviously, when using the allOf keyword, the SwaggerHub designer must decide which of the available schema must be displayed first. Of course, we can naturally expect to see the document preview to follow the same order than the script but, as far as I know, the last schema declaration is always taken and displayed first!!
Anyway, now that this fact is known we can try to find a way to get our expected order.
First, I propose to extend the usage of allOf in such way:
thanks!! for the work around approach. can be an alternative solution. For completeness if would be good if we have this capability supported out of the box. thanks!! again, appreciate your help and recommendation.