Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

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.yml
index 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 observation
metadata:
- type: map<string, unknown>
+ type: optional<map<string, unknown>>
docs: Additional metadata of the observation
output:
type: unknown
@@ -454,7 +454,7 @@ types:
type: nullable<string>
docs: Comment on the score
metadata:
- type: map<string, unknown>
+ type: optional<map<string, unknown>>
docs: Metadata associated with the score
configId:
type: nullable<string>
@@ -539,7 +539,7 @@ types:
type: nullable<string>
docs: Comment on the score
metadata:
- type: map<string, unknown>
+ type: optional<map<string, unknown>>
docs: Metadata associated with the score
configId:
type: nullable<string>
diff --git a/fern/apis/server/definition/datasets.yml b/fern/apis/server/definition/datasets.yml
index 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.yml
index 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 object
OtelAttribute:
diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.yml
index cbd1941ca5..8a4835c3c9 100644
--- a/web/public/generated/api/openapi.yml
+++ b/web/public/generated/api/openapi.yml
@@ -10027,6 +10027,7 @@ components:
metadata:
type: object
additionalProperties: true
+ nullable: true
description: Additional metadata of the observation
output:
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: object
additionalProperties: true
+ nullable: true
description: Metadata associated with the score
configId:
type: string
@@ -10575,7 +10576,6 @@ components:
- updatedAt
- authorUserId
- comment
- - metadata
- configId
- queueId
- environment
@@ -10738,6 +10738,7 @@ components:
metadata:
type: object
additionalProperties: true
+ nullable: true
description: Metadata associated with the score
configId:
type: string
@@ -10767,7 +10768,6 @@ components:
- updatedAt
- authorUserId
- comment
- - metadata
- configId
- queueId
- environment
@@ -11900,15 +11900,11 @@ components:
metadata:
nullable: true
inputSchema:
- type: object
- additionalProperties: true
nullable: true
description: >-
JSON Schema for validating dataset item inputs. When set, all new
and existing dataset items will be validated against this schema.
expectedOutputSchema:
- type: object
- additionalProperties: true
nullable: true
description: >-
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: true
nullable: true
description: Span status object
OtelAttribute: