proto3-suite-0.4.2: A low level library for writing out data in the Protocol Buffers wire format
Safe HaskellNone
LanguageHaskell2010

Proto3.Suite.DotProto.Generate.Swagger

Description

This module provides helper functions to generate Swagger schemas that describe JSONPB encodings for protobuf types.

Synopsis

Documentation

ppSchema :: ToSchema a => Proxy a -> IO () Source #

Pretty-prints a schema. Useful when playing around with schemas in the REPL.

newtype OverrideToSchema a Source #

This is a hack to work around the swagger2 library forbidding ToSchema instances for ByteStrings

Constructors

OverrideToSchema 

Fields

asProxy :: (Proxy (OverrideToSchema 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

Orphan instances