From 8b3e3c13b0617ef9050f90af14cf57038ef3c1a6 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Fri, 10 Jan 2025 16:30:23 +0100 Subject: [PATCH] Fix `previewFeaturesEnabled` (from `previewFeaturesEnableds`) Fixes #800 --- provider/resources.go | 33 ++++++++++++--------------------- schema.json | 0 2 files changed, 12 insertions(+), 21 deletions(-) delete mode 100644 schema.json diff --git a/provider/resources.go b/provider/resources.go index 3df403c5..410548a5 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -60,27 +60,18 @@ func Provider() info.Provider { Version: version.Version, DocRules: &info.DocRule{EditRules: docEditRules}, Config: map[string]*info.Schema{ - "password": { - Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PASSWORD"}}, - }, - "private_key_passphrase": { - Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE"}}, - }, - "role": { - Default: &info.Default{EnvVars: []string{"SNOWFLAKE_ROLE"}}, - }, - "host": { - Default: &info.Default{EnvVars: []string{"SNOWFLAKE_HOST"}}, - }, - "port": { - Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PORT"}}, - }, - "protocol": { - Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PROTOCOL"}}, - }, - "warehouse": { - Default: &info.Default{EnvVars: []string{"SNOWFLAKE_WAREHOUSE"}}, - }, + // Fix pluralization. + // + // Previously was "previewFeaturesEnableds". + "preview_features_enabled": {Name: "previewFeaturesEnabled"}, + + "host": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_HOST"}}}, + "password": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PASSWORD"}}}, + "port": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PORT"}}}, + "private_key_passphrase": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE"}}}, + "protocol": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PROTOCOL"}}}, + "role": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_ROLE"}}}, + "warehouse": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_WAREHOUSE"}}}, }, Resources: map[string]*info.Resource{ "snowflake_execute": {Fields: map[string]*info.Schema{ diff --git a/schema.json b/schema.json deleted file mode 100644 index e69de29b..00000000