{
  "schema": "https://bars.commonsware.com/conformance/schema/env-property-fixture.schema.json",
  "version": "0.1.0",
  "cases": [
    {
      "name": "env-datetime-property",
      "description": "A dateTime property other than now renders as an ISO 8601 string.",
      "template": "{{ @env/stamp }}",
      "properties": {
        "stamp": {
          "kind": "dateTime",
          "value": "2020-01-01T00:00:00Z"
        }
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "2020-01-01T00:00:00Z"
      }
    },
    {
      "name": "env-datetime-renders-milliseconds",
      "description": "A non-zero millisecond-precision instant renders with a 3-digit fractional-second group.",
      "template": "{{ @env/stamp }}",
      "properties": {
        "stamp": {
          "kind": "dateTime",
          "value": "2020-01-01T00:00:00.123Z"
        }
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "2020-01-01T00:00:00.123Z"
      }
    },
    {
      "name": "env-datetime-renders-microseconds",
      "description": "A non-zero microsecond-precision instant renders with a 6-digit fractional-second group.",
      "template": "{{ @env/stamp }}",
      "properties": {
        "stamp": {
          "kind": "dateTime",
          "value": "2020-01-01T00:00:00.123456Z"
        }
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "2020-01-01T00:00:00.123456Z"
      }
    },
    {
      "name": "env-datetime-renders-nanoseconds",
      "description": "A non-zero nanosecond-precision instant renders with a 9-digit fractional-second group.",
      "template": "{{ @env/stamp }}",
      "properties": {
        "stamp": {
          "kind": "dateTime",
          "value": "2020-01-01T00:00:00.123456789Z"
        }
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "2020-01-01T00:00:00.123456789Z"
      }
    },
    {
      "name": "env-datetime-keeps-trailing-zero-within-group",
      "description": "A millisecond-precision instant with trailing zero digits keeps the full 3-digit group; it is not trimmed to fewer digits within the group.",
      "template": "{{ @env/stamp }}",
      "properties": {
        "stamp": {
          "kind": "dateTime",
          "value": "2020-01-01T00:00:00.100Z"
        }
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "2020-01-01T00:00:00.100Z"
      }
    },
    {
      "name": "env-datetime-normalizes-offset-to-utc",
      "description": "A dateTime constructed from a non-UTC offset normalizes to UTC (Z) on render.",
      "template": "{{ @env/stamp }}",
      "properties": {
        "stamp": {
          "kind": "dateTime",
          "value": "2020-01-01T00:00:00+02:00"
        }
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "2019-12-31T22:00:00Z"
      }
    },
    {
      "name": "env-datetime-property-format",
      "description": "A dateTime property keeps its type into the format_date_time transform.",
      "template": "{{ @env/stamp | format_date_time: 'yyyy' }}",
      "properties": {
        "stamp": {
          "kind": "dateTime",
          "value": "2020-01-01T00:00:00Z"
        }
      },
      "expect": {
        "kind": "output",
        "expectedOutput": "2020"
      }
    }
  ]
}
