hashicorp / terraform-plugin-codegen-openapi

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

Add support for `string-able` multi-types, allOf overrides, and improve error messaging #63

Closed austinvalle closed 10 months ago

austinvalle commented 11 months ago

Closes: #57 Ref: #56

This PR introduces:

Examples of error logging

Prior to adding the allOf support:

time=2023-09-29T13:08:23.155-04:00 level=WARN msg="skipping resource schema mapping" resource=deployment_v1 err="property does not have a 'type' or supported allOf, oneOf, anyOf constraint - attribute cannot be created" oas_property=metadata oas_line_number=377

Prior to adding the string-able support:

time=2023-09-29T13:08:55.626-04:00 level=WARN msg="skipping resource schema mapping" resource=deployment_v1 err="[integer, string] - unsupported multi-type, attribute cannot be created" oas_property=spec.strategy.rollingUpdate.maxSurge oas_line_number=879
github-actions[bot] commented 3 months ago

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