hashicorp / terraform-plugin-codegen-openapi

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

Refactor internal building of schemas and improve error messaging #73

Closed austinvalle closed 10 months ago

austinvalle commented 10 months ago

Closes #71

This PR introduces:

Screenshot 2023-10-13 at 11 58 35 AM

Example error

time=2023-10-13T12:00:29.505-04:00 level=WARN msg="skipping mapping of create operation response body" resource=gists oas_path=fork_of.forks oas_line_number=83868 err="no 'type' array or supported allOf, oneOf, anyOf constraint - attribute cannot be created"

Screenshot 2023-10-13 at 12 01 48 PM

New error

time=2023-10-13T12:08:30.658-04:00 level=WARN msg="skipping mapping of create operation response body" resource=orgs oas_path=reactions.+1 oas_line_number=82619 err="'+1' cannot be converted to a valid Terraform identifier"

Screenshot 2023-10-13 at 12 10 58 PM

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.