hashicorp / hashicorp/terraform-plugin-codegen-openapi
Support for `oneOf` with discriminator
- Dominant language
- Go
- Stars
- 91
- Forks
- 20
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 1
Description
I am looking to create a provider for an API that makes heavy use of [polymorphism](https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/), i.e. a `oneOf` with a discriminator value. I am aware that [this is currently not supported](https://github.com/hashicorp/terraform-plugin-codegen-openapi/blob/main/DESIGN.md#known-limitations). [This post](https://www.reddit.com/r/Terraform/comments/kl5hjf/polymorphic_resources_provider_best_practices/) has a couple of ideas for how a provider could support polymorphism.
Is support for this type of polymorphism on your roadmap? If yes, do you have thoughts on what the generated spec would look like? If not, do you have thoughts on alternative approaches?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.