Use a JSON schema when testing the DagPipelineSerializer

Related to #215524 (closed)

It would be nice in a follow-up where we expose this endpoint to have a schema matcher.

We should use a JSON schema when testing the DagPipelineSerializer.

Edited by Allison Browne (PTO 12/19-1/2)