diff --git a/blacklist.txt b/blacklist.txt index 12b2f0e..5a9dd67 100644 --- a/blacklist.txt +++ b/blacklist.txt @@ -6,5 +6,4 @@ kms airflow customer -vpn privateendpoint \ No newline at end of file diff --git a/templates/go/api_test.mustache b/templates/go/api_test.mustache index e0e6892..b731661 100644 --- a/templates/go/api_test.mustache +++ b/templates/go/api_test.mustache @@ -30,7 +30,7 @@ func Test_{{packageName}}_{{classname}}Service(t *testing.T) { _apiUrlPath := "{{{path}}}"{{#pathParams}} {{^minLength}} {{^maxLength}} - {{paramName}}Value := {{#isAnyType}}"unspecified type"{{/isAnyType}}{{#isString}}{{#isUuid}}uuid.NewString(){{/isUuid}}{{^isUuid}}"{{paramName}}-value"{{/isUuid}}{{/isString}}{{#isNumber}}123{{/isNumber}}{{#isFloat}}float32(123){{/isFloat}}{{#isDouble}}float64(123){{/isDouble}}{{#isInteger}}int32(123){{/isInteger}}{{#isLong}}int64(123){{/isLong}}{{^isString}}{{^isInteger}}{{defaultValue}}{{/isInteger}}{{/isString}} + {{paramName}}Value := {{#isEnumRef}}{{^isString}}{{dataType}}({{{defaultValue}}}){{/isString}}{{/isEnumRef}}{{#isAnyType}}"unspecified type"{{/isAnyType}}{{#isString}}{{#isUuid}}uuid.NewString(){{/isUuid}}{{^isUuid}}"{{paramName}}-value"{{/isUuid}}{{/isString}}{{#isNumber}}123{{/isNumber}}{{#isFloat}}float32(123){{/isFloat}}{{#isDouble}}float64(123){{/isDouble}}{{#isInteger}}int32(123){{/isInteger}}{{#isLong}}int64(123){{/isLong}}{{^isString}}{{^isInteger}}{{^isEnumRef}}{{{defaultValue}}}{{/isEnumRef}}{{/isInteger}}{{/isString}} {{/maxLength}} {{/minLength}} {{#minLength}}