atlas-cardano-0.4.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2024 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
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 ∷ ∀ a. KnownSymbol a ⇒ StringString #

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