atlas-cardano
Copyright(c) 2024 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellNone
LanguageGHC2021

GeniusYield.Swagger.Utils

Description

 
Synopsis

Documentation

addSwaggerExample :: (Functor f1, Functor f2, HasSchema b1 a, HasExample a (Maybe b2)) => b2 -> f1 (f2 b1) -> f1 (f2 b1) #

Utility function to add swagger example to a schema.

addSwaggerDescription :: (Functor f1, Functor f2, HasSchema b1 a, HasDescription a (Maybe b2)) => b2 -> f1 (f2 b1) -> f1 (f2 b1) #

Utility function to add swagger description to a schema.

dropSymbolAndCamelToSnake :: forall (a :: Symbol). KnownSymbol a => String -> String #

Drop the applied type symbol and convert camel case to snake case.