highsource/jsonix-schema-compiler

Add option for full baseTypeInfo

Closed this issue · 2 comments

In earlier releases the baseTypeInfo got resolved to the full path like this:

...
baseTypeInfo: com.example.XMLType,
...

In the last couple releases it gets this:

...
baseTypeInfo: .XMLType,
...

Is it somehow possible to get the full path back?

You can access this information via the name property of the class info. Something like:

var context = new Jsonix.Context([ PO ]);
var itemsClassInfo = context.getTypeInfoByName("PO.Items");
test.equal('PO.Items', itemPropertyInfo.name);

The mapping name is omitted in mappings for brevity.

Thanks a lot for the hint! You helped me a lot as always 👍