Module: middleware-dataset-failed-expectation-details

Responsible for displaying issue page for a failed expectation of a dataset.

See https://datasette.planning.data.gov.uk/digital-land/expectation for data.

Source:

Methods

(inner) prepareTemplateParams(req, res, next) → {undefined}

Parameters:
Name Type Description
req Object

The request object. It should contain the following properties:

Properties
Name Type Attributes Description
parsedParams Object

An object containing the parameters of the request

dataset Object

dataset info

orgInfo Object

org info

expectationOutOfBounds Array.<Object> <optional>
Properties
Name Type Description
dataset string
passed boolean

did the exepectation pass

expected number
actual number
details String

JSON string

entityIds Array.<String> <optional>

ids of entities out of bounds

dataRange Object
pagination Object

pagination info

entity Object <optional>
templateParams Object

OUT value

res Object

The response object.

next function

The next middleware function.

Source:
Returns:
Type
undefined