Skip to content

The Pino profile JSON Schema

Source: R/pino.R ยท Help: ?pino_schema

The Pino profile is the shape condition_to_pino() writes: the DataExcept envelope projected onto the error Pino logs. Its JSON Schema, pino-1.0.0.json, is published by the Python DataExcept package and ships with this one, together with the Python package's projection of each reference envelope fixture, under schema/fixtures/pino/. The test suite requires envelope_to_pino() to reproduce every one of them.

Usage

pino_schema()

Value

The schema as a list.

Examples

pino_schema()$`$id`
names(pino_schema()$`$defs`)

# The file itself, for a JSON Schema validator:
system.file("schema", "pino-1.0.0.json", package = "dataexcept")

See also

envelope_schema() for the envelope's own schema.