You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was expecting that nested objects would be handled as well and that the links property would be added to the schema. I found that somewhere in the recursion path the normal SchemaFactory was used instead of the HyperSchemaFactory.
After digging in the code I pinpointed that HyperSchemaFactoryWrapperFactory only overrides
public SchemaFactoryWrapper getWrapper(SerializerProvider p)
and should also override
public SchemaFactoryWrapper getWrapper(SerializerProvider rovider, VisitorContext rvc)
I guess the following should work
private static class HyperSchemaFactoryWrapperFactory extends WrapperFactory
{
@Override
public SchemaFactoryWrapper getWrapper(SerializerProvider p) {
SchemaFactoryWrapper wrapper = new HyperSchemaFactoryWrapper();
wrapper.setProvider(p);
return wrapper;
};
@Override
public SchemaFactoryWrapper getWrapper(SerializerProvider provider, VisitorContext rvc)
{
SchemaFactoryWrapper wrapper = new HyperSchemaFactoryWrapper();
wrapper.setProvider(provider);
wrapper.setVisitorContext(rvc);
return wrapper;
}
};
The text was updated successfully, but these errors were encountered:
Hi, I was expecting that nested objects would be handled as well and that the links property would be added to the schema. I found that somewhere in the recursion path the normal SchemaFactory was used instead of the HyperSchemaFactory.
After digging in the code I pinpointed that HyperSchemaFactoryWrapperFactory only overrides
and should also override
I guess the following should work
The text was updated successfully, but these errors were encountered: