Move schema definition validation from runtime to a test.

PiperOrigin-RevId: 606280564
Change-Id: I9fec9eb3538f63f84e1982f21e1a93f16342d540
This commit is contained in:
Kyle Bayes
2024-02-12 09:48:44 -08:00
committed by Copybara-Service
parent b6873ec8a2
commit eabd4c06f9
5 changed files with 157 additions and 79 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class [[nodiscard]] mjXError {
// Custom XML file validation
class mjXSchema {
public:
mjXSchema(const char* schema[][mjXATTRNUM], unsigned nrow, bool checkptr = true);
mjXSchema(const char* schema[][mjXATTRNUM], unsigned nrow);
std::string GetError(); // return error
void Print(std::stringstream& str, int level) const; // print schema