Expand description
Traits to represent a Pact
Traits§
- Pact
- Trait for a Pact (request/response or message)
- Read
Write Pact - Trait for objects that can represent Pacts and can be read and written
Functions§
- determine_
spec_ version - Determines the Pact specification version from the metadata of the Pact file
- load_
pact_ from_ json - Loads a Pact model from a JSON Value
- load_
pact_ from_ url - Reads the pact file from a URL and parses the resulting JSON into a
Pactstruct - parse_
meta_ data - Construct Metadata from JSON value
- read_
pact - Reads the pact file and parses the resulting JSON into a
Pactstruct - read_
pact_ from_ file - Reads the pact from the file and parses the resulting JSON into a
Pactstruct - write_
pact - Writes the pact out to the provided path. If there is an existing pact at the path, the two pacts will be merged together unless overwrite is true. Returns an error if the file can not be written or the pacts can not be merged.