def

func:fitsExplain

fitsExplain(recs, spec, opts: null)

Return grid which explains how data fits the given spec. This function takes one or more recs and returns a grid. For each rec zero or more rows are returned with an error why the rec does not fit the given type. If a rec does fit the type, then zero rows are returned for that record.

If you pass null for the spec, then each record is fit against its declared spec tag. If a given rec is missing a spec tag then it is reported an error.

See fits() for list of options.

Example:

// validate tags on records only
readAll(vav and hotWaterHeating).fitsExplain(G36ReheatVav)

// validate tags and required points and other graph queries
readAll(vav and hotWaterHeating).fitsExplain(G36ReheatVav, {graph})

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function