beerjson

The schema defines the following types:

VolumeType

A volume, as a magnitude and its unit.

VolumeType is an object with these properties:

Name Required Type Description
unit ✅ VolumeUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

MassType

A mass, as a magnitude and its unit.

MassType is an object with these properties:

Name Required Type Description
unit ✅ MassUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

DiastaticPowerType

Diastatic power is a measurement of malted grains enzymatic content. A value of 35 Lintner is needed to self convert, while a value of 100 or more is desirable for base malts.

DiastaticPowerType is an object with these properties:

Name Required Type Description
unit ✅ DiastaticPowerUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

TemperatureType

A temperature, as a magnitude and its unit.

TemperatureType is an object with these properties:

Name Required Type Description
unit ✅ TemperatureUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

PressureType

A pressure, as a magnitude and its unit.

PressureType is an object with these properties:

Name Required Type Description
unit ✅ PressureUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

AcidityType

An acidity, as a magnitude and its unit.

AcidityType is an object with these properties:

Name Required Type Description
unit ✅ AcidityUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

TimeType

A duration, as a magnitude and its unit. The magnitude may be fractional, such as 3.5 min.

TimeType is an object with these properties:

Name Required Type Description
unit ✅ TimeUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

ColorType

ColorType supports both grain color properties, such as Lovibond, and wort color properties such as SRM and EBC.

ColorType is an object with these properties:

Name Required Type Description
unit ✅ ColorUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

CarbonationType

A carbonation level, as a magnitude and its unit.

CarbonationType is an object with these properties:

Name Required Type Description
unit ✅ CarbonationUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

BitternessType

A bitterness, as a magnitude and its unit.

BitternessType is an object with these properties:

Name Required Type Description
unit ✅ BitternessUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

GravityType

Gravity refers to the both the measurements of percent of sugar content, ie plato and brix, as well as relative density ie specific gravity.

GravityType is an object with these properties:

Name Required Type Description
unit ✅ GravityUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

SpecificHeatType

The heat required to raise a given mass by one degree, per unit mass.

SpecificHeatType is an object with these properties:

Name Required Type Description
unit ✅ SpecificHeatUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

ConcentrationType

Examples for concentration include ppm, ppb, and mg/l.

ConcentrationType is an object with these properties:

Name Required Type Description
unit ✅ ConcentrationUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

SpecificVolumeType

Specific volume is the inverse of density, with units of volume over mass, ie qt/lb or L/kg. Commonly used for mash thickness.

SpecificVolumeType is an object with these properties:

Name Required Type Description
unit ✅ SpecificVolumeUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

EnergyPerVolumeType

An energy content per volume of beer, as a magnitude and its unit.

EnergyPerVolumeType is an object with these properties:

Name Required Type Description
unit ✅ EnergyPerVolumeUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

UnitType

UnitType is used where unitless amounts are required, such as 1 apple, or 1 yeast packet.

UnitType is an object with these properties:

Name Required Type Description
unit ✅ UnitUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

ViscosityType

Viscosity of fluids

ViscosityType is an object with these properties:

Name Required Type Description
unit ✅ ViscosityUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

CarbonationRangeType

A range of carbonation levels, as a minimum and a maximum.

CarbonationRangeType is an object with these properties:

Name Required Type Description
minimum ✅ CarbonationType The lower end of the range.
maximum ✅ CarbonationType The upper end of the range.

BitternessRangeType

A range of bitterness values, as a minimum and a maximum.

BitternessRangeType is an object with these properties:

Name Required Type Description
minimum ✅ BitternessType The lower end of the range.
maximum ✅ BitternessType The upper end of the range.

TemperatureRangeType

A range of temperatures, as a minimum and a maximum.

TemperatureRangeType is an object with these properties:

Name Required Type Description
minimum ✅ TemperatureType The lower end of the range.
maximum ✅ TemperatureType The upper end of the range.

ColorRangeType

A range of colors, as a minimum and a maximum.

ColorRangeType is an object with these properties:

Name Required Type Description
minimum ✅ ColorType The lower end of the range.
maximum ✅ ColorType The upper end of the range.

GravityRangeType

A range of gravities, as a minimum and a maximum.

GravityRangeType is an object with these properties:

Name Required Type Description
minimum ✅ GravityType The lower end of the range.
maximum ✅ GravityType The upper end of the range.

PercentRangeType

A range of percentages, as a minimum and a maximum.

PercentRangeType is an object with these properties:

Name Required Type Description
minimum ✅ PercentType The lower end of the range.
maximum ✅ PercentType The upper end of the range.

VolumeUnitType

Units in which a volume may be expressed.

"ml"
"l"
"tsp"
"tbsp"
"floz"
"cup"
"pt"
"qt"
"gal"
"bbl"
"ifloz"
"ipt"
"iqt"
"igal"
"ibbl"

MassUnitType

Units in which a mass may be expressed.

"mg"
"g"
"kg"
"lb"
"oz"

DiastaticPowerUnitType

Units in which diastatic power may be expressed.

"Lintner"
"WK"

TemperatureUnitType

Units in which a temperature may be expressed.

"C"
"F"

AcidityUnitType

Units in which acidity may be expressed.

"pH"

PressureUnitType

Units in which a pressure may be expressed.

"kPa"
"psi"
"bar"

TimeUnitType

Units in which a duration may be expressed.

"sec"
"min"
"hr"
"day"
"week"

ColorUnitType

Units in which a color may be expressed.

"EBC"
"Lovi"
"SRM"

CarbonationUnitType

Units in which carbonation may be expressed.

"vols"
"g/l"

BitternessUnitType

Units in which bitterness may be expressed.

"IBUs"

GravityUnitType

Units in which a gravity may be expressed.

"sg"
"plato"
"brix"

ConcentrationUnitType

Units in which a concentration may be expressed.

"ppm"
"ppb"
"mg/l"

SpecificHeatUnitType

Units in which specific heat may be expressed. Despite its capital C, Cal/(g C) means calories, not kilocalories, per gram per degree Celsius, so water is 1.0 and stainless steel about 0.12. It is numerically equal to BTU/(lb F).

"Cal/(g C)"
"J/(kg K)"
"BTU/(lb F)"

SpecificVolumeUnitType

Units in which a specific volume may be expressed.

"qt/lb"
"gal/lb"
"gal/oz"
"l/g"
"l/kg"
"floz/oz"
"m^3/kg"
"ft^3/lb"

EnergyPerVolumeUnitType

Units in which an energy content per volume may be expressed. kcal is the kilocalorie (dietary Calorie). pt is the US pint of 16 US fluid ounces, ipt the imperial pint, and floz the US fluid ounce. kcal/100ml and kJ/100ml are the units of EU nutritional labelling.

"kcal/l"
"kcal/50cl"
"kcal/33cl"
"kcal/25cl"
"kcal/100ml"
"kcal/pt"
"kcal/12floz"
"kcal/ipt"
"kJ/100ml"

UnitUnitType

Units in which a count of items may be expressed. Write each, which counts whatever the ingredient is: apples, cinnamon sticks, yeast packets. The values 1, unit, dimensionless and pkg are deprecated synonyms of each, kept so existing documents stay valid; readers should treat all five alike.

"1"
"unit"
"each"
"dimensionless"
"pkg"

DateType

A date, as ISO 8601 YYYY-MM-DD, optionally with a time as YYYY-MM-DDThh:mm:ss. The time may have fractional seconds and may end in Z or a UTC offset such as +01:00; without either it is a local time. The pattern checks that the month, day and time are in range, but not that the day exists in that month.

RegExp pattern: ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(T([01]\d|2[0-3]):[0-5]\d:([0-5]\d|60)(\.\d+)?(Z|[+-]([01]\d|2[0-3]):[0-5]\d)?)?$

BoundedPercentType

A percentage that is a share of a whole, so cannot be below 0 or above 100, as a magnitude and its unit.

BoundedPercentType is an object with these properties:

Name Required Type Description
unit ✅ PercentUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

PercentType

A percentage, as a magnitude and its unit, for a quantity that can legitimately fall outside 0 to 100, such as apparent attenuation, which exceeds 100 when the final gravity is below 1.000. Use BoundedPercentType for a share of a whole.

PercentType is an object with these properties:

Name Required Type Description
unit ✅ PercentUnitType The unit the value is expressed in.
value ✅ number The magnitude of the measurement. Its unit is given by the sibling unit property.

PercentUnitType

Units in which a percentage may be expressed.

"%"

QualitativeRangeType

A qualitative scale, for a property that is judged rather than measured.

"very low"
"low"
"medium low"
"medium"
"medium high"
"high"
"very high"

VersionType

The version of the BeerJSON format this document is written against, as MAJOR.MINOR. A schema accepts its own version and the earlier ones it can still validate. Note that JSON has no decimal type, so 3.0 is written as the number 3.

2.01
2.06
3

ViscosityUnitType

Units in which a viscosity may be expressed.

"cP"
"mPa-s"