Fix targetSchema definition and add pagination schema to HyperSchema