Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides helper functions to generate Swagger schemas that describe JSONPB encodings for protobuf types.
Documentation
ppSchema :: ToSchema a => Proxy a -> IO () Source #
Pretty-prints a schema. Useful when playing around with schemas in the REPL.
asProxy :: (Proxy a -> b) -> Proxy a Source #
This is a convenience function that uses type inference to select the
correct instance of ToSchema
to use for fields of a message
insOrdFromList :: (Eq k, Hashable k) => [(k, v)] -> InsOrdHashMap k v Source #
Convenience re-export so that users of generated code don't have to add
an explicit dependency on insert-ordered-containers