proto3-suite-0.7.0: A higher-level API to the proto3-wire library
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.

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

Orphan instances

ToSchema a => ToSchema (Wrapped a) Source # 
Instance details

ToSchema (Maybe a) => ToSchema (Nested a) Source # 
Instance details

ToSchema a => ToSchema (NestedVec a) Source # 
Instance details

ToSchema a => ToSchema (UnpackedVec a) Source # 
Instance details

ToSchema a => ToSchema (PackedVec a) Source # 
Instance details

ToSchema (Bytes a) Source # 
Instance details

ToSchema (String a) Source # 
Instance details

(Finite e, Named e) => ToSchema (Enumerated e) Source #

JSONPB schemas for protobuf enumerations

Instance details

ToSchema a => ToSchema (Signed a) Source # 
Instance details

ToSchema a => ToSchema (Fixed a) Source # 
Instance details