apigitlabs / apigit-support

APIGIT is a native Git based collaboration platform for API design, document, mock and share.
https://apigit.com
3 stars 0 forks source link

Include in form mode the possibility to specify anyOf, oneOf in $ref (Inheritance and Polymorphism) #24

Closed fstapf closed 1 year ago

fstapf commented 1 year ago

Is there an existing request for this feature?

Is your feature request related to a problem?

When needing to specify more than one reference, it can only be done through code.

Describe the solution you'd like

API Specifications > spec files > edit > schema > add > advance settings In the advanced settings window of the $ref object type, add a field to specify the Inheritance and Polymorphism type (using the oneOf or anyOf keywords). After selecting the type, allow the entry of more than one reference.

API Specifications > spec files > edit > schema > add On the main screen, within the object, instead of displaying an empty dropdown, display $ref.

API Specifications > spec files > visual mode > swagger || default > examples API Specifications > spec files > edit > schema > example Construct an example with all possible types automatically.

Describe alternatives you've considered

No response

Additional context

When specifying an Inheritance and Polymorphism, both the swagger mode and the default mode recognize the type, correctly displaying it in the documentation. However, in the form editing mode, the dropdown remains blank when specifying an anyOf in advanced settings.

https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/

apigitlabs commented 1 year ago

hi @fstapf , thanks for reaching out. Our dev team is looking at this now, we will give you an update shortly.

apigitlabs commented 1 year ago

hi @fstapf , our dev team has made some improvements to support Inheritance and Polymorphism (oneOf/anyOf/allOf). Please help to check if this fits your needs.