fix API Schema creation