hashicorp / terraform-plugin-codegen-spec

Terraform Provider Code Generation Specification and Go Bindings
Mozilla Public License 2.0
7 stars 4 forks source link

Validations for custom_type #22

Closed bendbennett closed 1 year ago

bendbennett commented 1 year ago

Currently, the schema defines the following for custom_type:

        "schema_custom_type": {
          "type": "object",
          "properties": {
            "import": {
              "type": "string"
            },
            "type": {
              "type": "string"
            },
            "value_type": {
              "type": "string"
            }
          },
          "required": [
            "type",
            "value_type"
          ]
        },

The type and value_type properties should probably have validations on the schema to ensure that they are not empty strings.

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