vlingo / xoom-schemata

The VLINGO XOOM Schema Registry.
https://vlingo.io
Mozilla Public License 2.0
17 stars 9 forks source link

[Compiler] Allow the TypeResolver to call recursively the compiler for type definitions #82

Closed kmruiz closed 5 years ago

kmruiz commented 5 years ago

Type definitions need to be compiled when queried from the database. Now the TypeResolver is asynchronous so it would allows us to reactively compile type definitions.

io.vlingo.schemata.codegen.processor.types.TypeResolver

We need to extend the TypeResolver interface in the SchemaVersionQueries protocol:

io.vlingo.schemata.query.SchemaVersionQueries

And probably we will need to change the TypeResolver to be able to compile TypeDefinitions from sources.

VaughnVernon commented 5 years ago

@kmruiz Is this near PR stage?

VaughnVernon commented 5 years ago

@kmruiz Perfect, thanks!

Fixed by: https://github.com/vlingo/vlingo-schemata/commit/6ddcf3d0b48e1b91a133ecd359eee0dc80cbb241