Azure/azure-rest-api-specs

The union `CreateFileSearchToolResourceOptions` is not correctly defined. Extract `vectorStoreIds` variant into a model.

jpalvarezl opened this issue · 0 comments

union CreateFileSearchToolResourceOptions is defined as a vectorStoreIds or vectorStores . The former is a String[]. To help code generation this should be extracted into a model.

This problem was introduced with the Assistant V2 spec.

In the case of Java we had to introduce:

  • CreateFileSearchToolResourceOptions : handling the union
  • CreateFileSearchToolResourceVectorStoreIds: handling the string[] side of the union
  • CreateFileSearchToolResourceVectorStoreOptionsList : handling the CreateFileSearchToolResourceVectorStoreOptions[] side of the union