vlingo/xoom-schemata

[Compiler] Build a new TypeResolver

Closed this issue · 3 comments

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: The InMemoryTypeResolver has been temporarily moved to src/main so the compiler will work for end-to-end tests.

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?

AFAIK you are right, because the type reference needs to be a full qualified name with an optional version.

I'm going to create an specific issue for implementing the TypeResolver based on io.vlingo.schemata.query.SchemaVersionQueries