The problem here was that I was only returning a subset of the pages in the full API response.
By running the complete script and including all pages the custom schemas were eventually returned.