Use conditional schema for endpoints