Move generated openAPI specs out of genericapiserver and make it configurable

This commit is contained in:
mbohlool
2016-09-13 17:11:36 -07:00
parent 02e0d5ab75
commit 38b2567d8b
11 changed files with 102 additions and 51 deletions

View File

@@ -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(),
},
}
}