update schema generation
allow to use result callback for non read endpoint