fix --conform raising `No generators registered` error

This commit is contained in:
Derek Bailey 2023-05-09 20:37:32 -07:00
parent 76f5e9816a
commit 16a7df46f0
1 changed files with 1 additions and 1 deletions

View File

@ -968,7 +968,7 @@ int FlatCompiler::Compile(const FlatCOptions &options) {
return 0;
}
if (options.generators.empty()) {
if (options.generators.empty() && options.conform_to_schema.empty()) {
Error("No generator registered");
return -1;
}