fix restricted fields for schema output are passed on to nested objects