curl-runnings-0.16.0: A framework for declaratively writing curl based API tests

Safe HaskellNone
LanguageHaskell2010

Testing.CurlRunnings.Internal.KeyValuePairs

Description

A module defining the KeyValuePairs type. This type may be used to represent a structure in a specification that is a collection of key-vaue pairs. For example query parameters and URLEncoded request bodies.

The module provides FromJSON and ToJSON instances for KeyValuePairs. Valid KeyValuePairs JSON is a single JSON object where all values are either String, Scienfific or Bool.

Synopsis

Documentation

data KeyValuePair Source #

A representation of a single key-value pair

Constructors

KeyValuePair Text Text