Revert "Remove JsonSchemaLinks#onRequest. The functionality it provides will be brought back later after some refactoring."

This reverts commit 89e491916bad0fbff54b90b04f658ae9443f5032.