hashicorp / terraform-plugin-codegen-openapi

OpenAPI to Terraform Provider Code Generation Specification
Mozilla Public License 2.0
49 stars 6 forks source link

Enhance functionality related to overriding or defining new properties for an attribute #84

Closed AgustinBettati closed 8 months ago

AgustinBettati commented 8 months ago

Context and use case

Currently the generator config allows overriding of attributes, but limits its functionality to modifying the description property:

schema:
      attributes:
        overrides:
          labels:
            description: other description

I have been trying this tool with the intention of replacing existing manual schema and type definitions with autogenerated ones using an existing API spec. In order to reach this parity there are several properties that are missing in the resulting provider code specification generated from the API spec, which is reasonable as the API spec lacks terraform-specific information.

Enhancement request

Here is a list of use cases I found would be useful for defining within the generator config:

austinvalle commented 8 months ago

Combining this request with #86 as they are closely related 👍🏻

github-actions[bot] commented 1 month 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.