Hi!

I'm interested in programatically dealing with schema
incompatibilities but I've stranded on
ResolvingGrammarGenerator.generate(Schema, Schema).

For the case of two incompatible schemas to closest I've been able to get is...

Symbol symbol = new ResolvingGrammarGenerator().generate(writeSchema,
readSchema);
System.err.println(((Symbol.ErrorAction)symbol.production[1]).msg);

...which gives me something like...

"Found schema.Test, expecting schema.Test, missing required field id"

...but what I'd like is some programatic representation of the
incompatibility. Such as the Field, Schema and something telling me
what the problem was (i.e. the field is missing).

>From casually browsing the source code I can't see how this would be
possible today. Is this anything that has been considered?



Thanks,
Mårten.

Reply via email to