code: func (b *builder) getOpenAPIConfig() *common.Config {
  	return &common.Config{
  		ProtocolList: []string{"https"},
  		Info: &spec.Info{
  			InfoProps: spec.InfoProps{
  				Title:   "Kubernetes CRD Swagger",
  				Version: "v0.1.0",
  			},
  		},
  		CommonResponses: map[int]spec.Response{
  			401: {
  				ResponseProps: spec.ResponseProps{
  					Description: "Unauthorized",
  				},
  			},
  		},
  		GetOperationIDAndTags: openapi.GetOperationIDAndTags,
  		GetDefinitionName: func(name string) (string, spec.Extensions) {
  			buildDefinitions.Do(buildDefinitionsFunc)
  			return namer.GetDefinitionName(name)
  		},
  		GetDefinitions: func(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
  			def := generatedopenapi.GetOpenAPIDefinitions(ref)
  			def[fmt.Sprintf("%s/%s.%s", b.group, b.version, b.kind)] = common.OpenAPIDefinition{
  				Schema: *b.schema,
  			}
  			def[fmt.Sprintf("%s/%s.%s", b.group, b.version, b.listKind)] = common.OpenAPIDefinition{
  				Schema: *b.listSchema,
  			}
  			return def
  		},
  	}
  }
docs: // getOpenAPIConfig builds config which wires up generated definitions for kube-openapi to consume