moved common resource definitions to separate function

This commit is contained in:
Natasha Sarkar
2021-02-22 14:35:23 -08:00
parent 7dd0ade0f9
commit 5a0e193002
4 changed files with 138 additions and 311 deletions

View File

@@ -481,7 +481,7 @@ func initSchema() {
ResetOpenAPI()
err := parse(customSchema)
if err != nil {
panic(err)
panic("invalid schema file")
}
return
}