diff --git a/pkg/codegen/customresourcegenerator.go b/pkg/codegen/customresourcegenerator.go index 67dcbec..a7d5aa7 100644 --- a/pkg/codegen/customresourcegenerator.go +++ b/pkg/codegen/customresourcegenerator.go @@ -175,7 +175,7 @@ func sanitizeReferenceName(fieldName string) string { return "Arguments" } - //We need to strip out any hyphens and underscores in the reference. + // We need to strip out any hyphens and underscores in the reference. fieldName = cgstrings.Unhyphenate(fieldName) fieldName = cgstrings.ModifyStringAroundDelimeter(fieldName, "_", cgstrings.UppercaseFirst) @@ -209,7 +209,7 @@ func crdToOpenAPI(crd *extensionv1.CustomResourceDefinition) ([]*spec.Swagger, e return openAPIManifests, nil } -// fillDefaultNames sets the default names for the CRD if they are not specified. +// setCRDDefaults sets the default names for the CRD if they are not specified. // This allows the OpenAPI builder to generate the swagger specs correctly with // the correct defaults. func setCRDDefaults(crd *extensionv1.CustomResourceDefinition) { diff --git a/tests/crds_test.go b/tests/crds_test.go index 5928e91..5eacaad 100644 --- a/tests/crds_test.go +++ b/tests/crds_test.go @@ -99,7 +99,7 @@ func TestCRDsFromUrl(t *testing.T) { }) } - // TODO: Also run compilation tests for java and python. + // TODO(#145): Also run compilation tests for java and python. compileValidationFn := map[string]func(t *testing.T, path string){ "nodejs": validateNodeCompiles, "go": validateGolangCompiles,