changes to API generation and spec