hashicorp / terraform-plugin-codegen-openapi

OpenAPI to Terraform Provider Code Generation Specification
Mozilla Public License 2.0
53 stars 12 forks source link

Support schema composition #147

Closed jdk-21 closed 7 months ago

jdk-21 commented 7 months ago

Use Cases or Problem Statement

I'm trying to generate a provider that uses the Microsoft Graph API openapi spec. The spec has multiple allOf subschemas, but schema composition doesn't seem to be supported right now.

Proposal

Allow schema compositon with multiple allOf subschemas.

Additional Information

No response

Code of Conduct

austinvalle commented 7 months ago

Hey there @jdk-21 👋🏻 , thanks for submitting this!

There is an issue out there that I believe matches what you're looking for in this request -> #56 (the original issue wasn't really well named, so I added "schema composition" to the end of the title 😆)

I'm going to mark this issue as a duplicate, but we'd love to hear a little more about your use-case w/ the Graph API over in #56. Maybe with some examples of the allOf schemas being composed and your expected output.

Thanks!

jdk-21 commented 7 months ago

Thank you. I will update the other issue.

github-actions[bot] commented 4 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.