techhat / openrecipeformat

Specs and Examples for the Open Recipe Format
Other
140 stars 29 forks source link

Example of recipe using duration #28

Open MasterOdin opened 3 years ago

MasterOdin commented 3 years ago

Looking at https://open-recipe-format.readthedocs.io/en/latest/topics/tutorials/using-alerts.html, I am confused on exactly where this duration field would be included on a step. Per the reference spec for the step dict, there is not duration field or anything else that might indicate duration, except perhaps embedding the duration in the step itself or in the notes field.

For a hypothetical duck procuttio recipe, a step may look like:

steps:
  - step: Hang for about 7 days in a cool (50 to 60 degrees is optimal), humid place, like a garage, a basement or in an unlit fireplace.

Now, is the intention that the 7 days in the step be replaced with7D` (which I would argue against as potentially leading to parsing ambiguities for durations), or have something like:

steps:
  - step: Hang for about 7 days in a cool (50 to 60 degrees is optimal), humid place, like a garage, a basement or in an unlit fireplace.
    duration: 7D

Happy to add this @techhat to the reference and update the schema, just need a bit of intended direction on what this meant.