Skip to content

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

fix(api): type OtelSpan scalars and dataset JSON-schema fields in OpenAPI (#17892)

Niklas Semmler62b7c3e7b094
diff --git a/fern/apis/server/definition/commons.yml b/fern/apis/server/definition/commons.yml
index f5d8fc728e..1e412f4424 100644
--- a/fern/apis/server/definition/commons.yml
+++ b/fern/apis/server/definition/commons.yml
@@ -643,10 +643,10 @@ types:
type: unknown
docs: Metadata associated with the dataset
inputSchema:
- type: nullable<unknown>
+ type: nullable<map<string, unknown>>
docs: JSON Schema for validating dataset item inputs
expectedOutputSchema:
- type: nullable<unknown>
+ type: nullable<map<string, unknown>>
docs: JSON Schema for validating dataset item expected outputs
projectId: string
createdAt: datetime
diff --git a/fern/apis/server/definition/datasets.yml b/fern/apis/server/definition/datasets.yml
index d43b61a333..64fa6f1c0d 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<unknown>
+ type: optional<map<string, 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<unknown>
+ type: optional<map<string, 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 3ff6359812..de17209bc9 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<unknown>
+ type: optional<map<string, unknown>>
docs: Span status object
OtelAttribute:
diff --git a/web/public/generated/api/openapi.yml b/web/public/generated/api/openapi.yml
index 898f60f3a6..1d7eedfbfa 100644
--- a/web/public/generated/api/openapi.yml
+++ b/web/public/generated/api/openapi.yml
@@ -10570,9 +10570,13 @@ components:
metadata:
description: Metadata associated with the dataset
inputSchema:
+ type: object
+ additionalProperties: true
nullable: true
description: JSON Schema for validating dataset item inputs
expectedOutputSchema:
+ type: object
+ additionalProperties: true
nullable: true
description: JSON Schema for validating dataset item expected outputs
projectId:
@@ -11492,11 +11496,15 @@ 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,
@@ -15071,6 +15079,8 @@ components:
Span attributes including Langfuse-specific attributes
(langfuse.observation.*)
status:
+ type: object
+ additionalProperties: true
nullable: true
description: Span status object
OtelAttribute: