<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Script validator tests too strictly for the expected YAML structure in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-validator-tests-too-strictly-for-the-expected-YAML-structure/m-p/801586#M63766</link>
    <description>&lt;P&gt;I sent the below as feedback, but I realise that rarely gets acknowledged. I thought a conversation here might prove more fruitful!&lt;/P&gt;&lt;P&gt;At present, the script editor supports YAML's anchors and aliases. These are useful for defining re-usable blocks (such as a condition common to multiple starters) and "pseudo-variables".&lt;/P&gt;&lt;P&gt;I feel that it would be useful to be able to define such anchors at the top of the file (e.g., under a "definitions" section), rather than requiring that they be defined where they are first used. This would be a cleaner pattern for maintenance, and better allow "templating" of automations.&lt;/P&gt;&lt;P&gt;At present, any unrecognised keys (or, keys used where they are not expected in the structure) cause a validation error.&lt;/P&gt;&lt;P&gt;I'd like to see Google consider:&lt;BR /&gt;* extend the "metadata" mapping with a "definitions" key or similar, containing arbitrary mappings under which a user might define anchors&lt;BR /&gt;* permit the script to be saved and run, even when there are unexpected fields in the structure (a sort of "ignore warnings" mode for low-criticality issues)&lt;/P&gt;</description>
    <pubDate>Sun, 19 Apr 2026 05:23:00 GMT</pubDate>
    <dc:creator>Rukt</dc:creator>
    <dc:date>2026-04-19T05:23:00Z</dc:date>
    <item>
      <title>Script validator tests too strictly for the expected YAML structure</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-validator-tests-too-strictly-for-the-expected-YAML-structure/m-p/801586#M63766</link>
      <description>&lt;P&gt;I sent the below as feedback, but I realise that rarely gets acknowledged. I thought a conversation here might prove more fruitful!&lt;/P&gt;&lt;P&gt;At present, the script editor supports YAML's anchors and aliases. These are useful for defining re-usable blocks (such as a condition common to multiple starters) and "pseudo-variables".&lt;/P&gt;&lt;P&gt;I feel that it would be useful to be able to define such anchors at the top of the file (e.g., under a "definitions" section), rather than requiring that they be defined where they are first used. This would be a cleaner pattern for maintenance, and better allow "templating" of automations.&lt;/P&gt;&lt;P&gt;At present, any unrecognised keys (or, keys used where they are not expected in the structure) cause a validation error.&lt;/P&gt;&lt;P&gt;I'd like to see Google consider:&lt;BR /&gt;* extend the "metadata" mapping with a "definitions" key or similar, containing arbitrary mappings under which a user might define anchors&lt;BR /&gt;* permit the script to be saved and run, even when there are unexpected fields in the structure (a sort of "ignore warnings" mode for low-criticality issues)&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2026 05:23:00 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Script-validator-tests-too-strictly-for-the-expected-YAML-structure/m-p/801586#M63766</guid>
      <dc:creator>Rukt</dc:creator>
      <dc:date>2026-04-19T05:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script validator tests too strictly for the expected YAML structure</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-validator-tests-too-strictly-for-the-expected-YAML-structure/m-p/801589#M63767</link>
      <description>&lt;P&gt;That’s a solid suggestion—having a top-level definitions section for anchors would definitely make scripts cleaner and easier to maintain. The strict validation is helpful for errors, but an “ignore warnings” or flexible mode for non-critical keys would be a great addition. Worth submitting through official feedback too, as that’s where feature requests are tracked.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2026 05:35:33 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Script-validator-tests-too-strictly-for-the-expected-YAML-structure/m-p/801589#M63767</guid>
      <dc:creator>thismarkjohnson</dc:creator>
      <dc:date>2026-04-19T05:35:33Z</dc:date>
    </item>
  </channel>
</rss>

