mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Move generated openAPI specs out of genericapiserver and make it configurable
This commit is contained in:
		@@ -42,10 +42,6 @@ func setUp(t *testing.T, fullMethods bool) (openAPI, *assert.Assertions) {
 | 
			
		||||
				Info:        config.Info,
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		openAPIDefinitions: &common.OpenAPIDefinitions{
 | 
			
		||||
			"openapi.TestInput":  *TestInput{}.OpenAPIDefinition(),
 | 
			
		||||
			"openapi.TestOutput": *TestOutput{}.OpenAPIDefinition(),
 | 
			
		||||
		},
 | 
			
		||||
	}, assert
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -193,6 +189,10 @@ func getConfig(fullMethods bool) *Config {
 | 
			
		||||
				Description: "Test API",
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		OpenAPIDefinitions: &common.OpenAPIDefinitions{
 | 
			
		||||
			"openapi.TestInput":  *TestInput{}.OpenAPIDefinition(),
 | 
			
		||||
			"openapi.TestOutput": *TestOutput{}.OpenAPIDefinition(),
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user