bump-sh-examples / train-travel-api

Sample OpenAPI description to use for whatever you like, as a hopefully more modern and useful alternative to the Petstore.
https://bump.sh/bump-examples/doc/train-travel-api
Other
52 stars 7 forks source link

polymorphism: add discriminator property name #9

Closed paulRbr closed 8 months ago

paulRbr commented 8 months ago

This helps to identify which property of the object is changing depending on the alternative. It adds a visible tag “Discriminator” next to the property type in the Bump.sh UI.

philsturgeon commented 8 months ago

After a long chat in Slack it's not clear that the usage of discriminator here is adding value to the train travel api documentation in its current form.