gram/conformance/cases/warn-020-invalid-duration/compiled.json

203 lines
4.1 KiB
JSON

{
"title": "Warn Invalid Duration",
"slug": "warn-invalid-duration",
"meta": {
"title": "Warn Invalid Duration"
},
"registry": {
"ingredients": {},
"cookware": {}
},
"shopping_list": [],
"cookware": [],
"sections": [
{
"title": "Dough",
"ingredients": [],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Knead ",
{
"type": "timer",
"raw": "1:30"
},
"."
],
"timings": {
"start": 0,
"end": 2,
"activeDuration": 2
}
}
],
"retro_planning": {
"raw": "-1-2d"
}
},
{
"title": "Bake",
"ingredients": [],
"cookware": [],
"steps": [
{
"type": "step",
"content": [
"Bake ",
{
"type": "timer",
"raw": "1h75"
},
", then ",
{
"type": "timer",
"raw": "1-2h30"
},
"."
],
"timings": {
"start": 2,
"end": 4,
"activeDuration": 2
}
}
]
}
],
"warnings": [
{
"code": "INVALID_DURATION",
"message": "Retro-planning offset \"-1-2d\" on \"Dough\" is not read: a section anchor is one duration, not a range: write e.g. -1d. The section is not anchored.",
"item": "Dough",
"loc": {
"start": 47,
"end": 55
}
},
{
"code": "INVALID_DURATION",
"message": "Timer duration \"1:30\" is not read: a clock with two parts could be hours or minutes: write 1h30 or 1:30 min. It is not counted in the total time.",
"item": "Timer",
"loc": {
"start": 63,
"end": 70
}
},
{
"code": "INVALID_DURATION",
"message": "Timer duration \"1h75\" is not read: minutes or seconds after a larger unit stay under 60: write 2h15, not 1h75. It is not counted in the total time.",
"item": "Timer",
"loc": {
"start": 87,
"end": 94
}
},
{
"code": "INVALID_DURATION",
"message": "Timer duration \"1-2h30\" is not read: one side of the range has no clear unit: write both sides in full, e.g. 1h-2h30 rather than 1-2h30. It is not counted in the total time.",
"item": "Timer",
"loc": {
"start": 101,
"end": 110
}
}
],
"metrics": {
"totalTime": 4,
"totalBreakdown": [
{
"label": "section_active:Dough",
"duration": 2
},
{
"label": "section_active:Bake",
"duration": 2
}
],
"idleTime": 0,
"activeTime": 4,
"activeBreakdown": [
{
"label": "section_active:Dough",
"duration": 2
},
{
"label": "section_active:Bake",
"duration": 2
}
],
"preparationTime": 0
},
"miseEnPlace": [],
"tasks": {
"tasks": [
{
"id": "s0.0",
"kind": "step",
"section": 0,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
},
{
"id": "s1.0",
"kind": "step",
"section": 1,
"step": 0,
"duration": {
"nominal": 2
},
"after": []
}
],
"sections": [
{
"day": 0
},
{
"day": 0
}
]
},
"schedule": {
"miseEnPlace": "perSection",
"rests": "shortest",
"totalTime": 4,
"activeTime": 4,
"preparationTime": 0,
"idleTime": 0,
"blocks": [
{
"kind": "step",
"task": "s0.0",
"section": 0,
"step": 0,
"start": 0,
"end": 2
},
{
"kind": "step",
"task": "s1.0",
"section": 1,
"step": 0,
"start": 2,
"end": 4
}
],
"days": [
{
"day": 0,
"start": 0,
"end": 4,
"sections": [
0,
1
]
}
]
}
}