diff --git a/src/__tests__/pinecone.test.ts b/src/__tests__/pinecone.test.ts index e23c8a81..6709a7fd 100644 --- a/src/__tests__/pinecone.test.ts +++ b/src/__tests__/pinecone.test.ts @@ -100,12 +100,13 @@ describe('Pinecone', () => { }); describe('optional properties', () => { - test('should not throw when optional properties provided: fetchAPI, controllerHostUrl', () => { + test('should not throw when optional properties provided: fetchAPI, controllerHostUrl, sourceTag', () => { expect(() => { new Pinecone({ apiKey: 'test-key', fetchApi: utils.getFetch({} as PineconeConfiguration), controllerHostUrl: 'https://foo-bar.io', + sourceTag: 'test-tag-123', } as PineconeConfiguration); }).not.toThrow(); }); diff --git a/src/data/types.ts b/src/data/types.ts index 215bd082..3251c1f6 100644 --- a/src/data/types.ts +++ b/src/data/types.ts @@ -14,6 +14,7 @@ export const PineconeConfigurationSchema = Type.Object( fetchApi: Type.Optional(Type.Any()), additionalHeaders: Type.Optional(Type.Any()), + sourceTag: Type.Optional(Type.String({ minLength: 1 })), }, { additionalProperties: false } );