From adc5921fd45adaaeca978f69fc5b50db6d7d6c98 Mon Sep 17 00:00:00 2001
From: Hamish Willee <hamishwillee@gmail.com>
Date: Tue, 8 Feb 2022 15:15:46 -0800
Subject: [PATCH] XSD validation requires messages have at least one field

---
 generator/mavschema.xsd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generator/mavschema.xsd b/generator/mavschema.xsd
index d8973034..db44f28b 100644
--- a/generator/mavschema.xsd
+++ b/generator/mavschema.xsd
@@ -272,7 +272,7 @@
                     <xs:element ref="wip"/>
                 </xs:choice>
                 <xs:element ref="description" minOccurs="1" maxOccurs="1"/>
-                <xs:element ref="field" minOccurs="0" maxOccurs="unbounded"/>
+                <xs:element ref="field" minOccurs="1" maxOccurs="unbounded"/>
             </xs:sequence>
             <!-- MavLink 2.0 extensions are optional hence minOccurs="0" -->
             <xs:sequence minOccurs="0" maxOccurs="1">
-- 
GitLab