Include proc parama and their types in openapi

This commit is contained in:
Joe Nelson
2016-09-08 23:00:52 -07:00
parent f49c6aa0f3
commit b9777dec35
3 changed files with 33 additions and 6 deletions
+4 -1
View File
@@ -16,9 +16,12 @@ data DbStructure = DbStructure {
, dbProcs :: [(Text,ProcDescription)]
} deriving (Show, Eq)
type PgArgName = Text
type PgArgType = Text
data ProcDescription = ProcDescription {
pdName :: Text
, pdArgs :: Text
, pdArgs :: [(PgArgName, PgArgType)]
, pdReturnType :: Text
} deriving (Show, Eq)