🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(api): keep metadata optional and request JSON fields untyped to avoid SDK breaks (#18406)
Niklas Semmler4e733d07aed5
diff --git a/fern/apis/server/definition/commons.yml b/fern/apis/server/definition/commons.ymlindex a680240a34..13c1aea1be 100644--- a/fern/apis/server/definition/commons.yml+++ b/fern/apis/server/definition/commons.yml@@ -148,7 +148,7 @@ types:type: nullable<string>docs: The version of the observationmetadata:- type: map<string, unknown>+ type: optional<map<string, unknown>>docs: Additional metadata of the observationoutput:type: unknown@@ -454,7 +454,7 @@ types:type: nullable<string>docs: Comment on the scoremetadata:- type: map<string, unknown>+ type: optional<map<string, unknown>>docs: Metadata associated with the scoreconfigId:type: nullable<string>@@ -539,7 +539,7 @@ types:type: nullable<string>docs: Comment on the scoremetadata:- type: map<string, unknown>+ type: optional<map<string, unknown>>docs: Metadata associated with the scoreconfigId:type: nullable<string>diff --git a/fern/apis/server/definition/datasets.yml b/fern/apis/server/definition/datasets.ymlindex 64fa6f1c0d..d43b61a333 100644--- a/fern/apis/server/definition/datasets.yml+++ b/fern/apis/server/definition/datasets.yml@@ -86,10 +86,10 @@ types:description: optional<string>metadata: optional<unknown>inputSchema:- type: optional<map<string, unknown>>+ type: optional<unknown>docs: JSON Schema for validating dataset item inputs. When set, all new and existing dataset items will be validated against this schema.expectedOutputSchema:- type: optional<map<string, unknown>>+ type: optional<unknown>docs: JSON Schema for validating dataset item expected outputs. When set, all new and existing dataset items will be validated against this schema.PaginatedDatasetRuns:properties:diff --git a/fern/apis/server/definition/opentelemetry.yml b/fern/apis/server/definition/opentelemetry.ymlindex de17209bc9..3ff6359812 100644--- a/fern/apis/server/definition/opentelemetry.yml+++ b/fern/apis/server/definition/opentelemetry.yml@@ -135,7 +135,7 @@ types:type: optional<list<OtelAttribute>>docs: Span attributes including Langfuse-specific attributes (langfuse.observation.*)status:- type: optional<map<string, unknown>>+ type: optional<unknown>docs: Span status objectOtelAttribute:diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.ymlindex cbd1941ca5..8a4835c3c9 100644--- a/web/public/generated/api/openapi.yml+++ b/web/public/generated/api/openapi.yml@@ -10027,6 +10027,7 @@ components:metadata:type: objectadditionalProperties: true+ nullable: truedescription: Additional metadata of the observationoutput:description: The output data of the observation@@ -10085,7 +10086,6 @@ components:- modelParameters- input- version- - metadata- output- usage- level@@ -10545,6 +10545,7 @@ components:metadata:type: objectadditionalProperties: true+ nullable: truedescription: Metadata associated with the scoreconfigId:type: string@@ -10575,7 +10576,6 @@ components:- updatedAt- authorUserId- comment- - metadata- configId- queueId- environment@@ -10738,6 +10738,7 @@ components:metadata:type: objectadditionalProperties: true+ nullable: truedescription: Metadata associated with the scoreconfigId:type: string@@ -10767,7 +10768,6 @@ components:- updatedAt- authorUserId- comment- - metadata- configId- queueId- environment@@ -11900,15 +11900,11 @@ components:metadata:nullable: trueinputSchema:- type: object- additionalProperties: truenullable: truedescription: >-JSON Schema for validating dataset item inputs. When set, all newand existing dataset items will be validated against this schema.expectedOutputSchema:- type: object- additionalProperties: truenullable: truedescription: >-JSON Schema for validating dataset item expected outputs. When set,@@ -15498,8 +15494,6 @@ components:Span attributes including Langfuse-specific attributes(langfuse.observation.*)status:- type: object- additionalProperties: truenullable: truedescription: Span status objectOtelAttribute: