[Compiler] Build a new TypeResolver
Closed this issue · 3 comments
kmruiz commented
A TypeResolver is a class that needs to be implemented so the compiler can find out which types are custom types defined in schemata. Right now there is no implementation of it, so the compiler itself is unusable in a real environment.
How to implement
- Implement a type registry somewhere in schemata. @VaughnVernon can provide more info.
- Implement a new class that implements the io.vlingo.schemata.codegen.processor.types.TypeResolver. You can see an example in the test code
NOTE: TheInMemoryTypeResolver
has been temporarily moved tosrc/main
so the compiler will work for end-to-end tests.
wwerner commented
I think this depends on #42 (unique constraints for organization/unit/... names), as we want to resolve using the schema coordinates like org:unit:context:...
, correct?
kmruiz commented
AFAIK you are right, because the type reference needs to be a full qualified name with an optional version.
kmruiz commented
I'm going to create an specific issue for implementing the TypeResolver based on io.vlingo.schemata.query.SchemaVersionQueries