Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,294 changes: 1,832 additions & 3,462 deletions oas_docs/output/kibana.serverless.yaml

Large diffs are not rendered by default.

5,408 changes: 1,889 additions & 3,519 deletions oas_docs/output/kibana.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,13 @@ export const convert = (schema: z.ZodTypeAny) => {
return;
}

// Zod v4's toJSONSchema() writes the .meta({ id }) value as a plain
// `id` property on the JSON schema node. OAS 3.0 Schema Objects do not
// allow `id`, so we strip it unconditionally here and track the
// component name via our own COMPONENT_ID_MARKER instead.
// See https://github.com/colinhacks/zod/issues/5731
delete (js as any).id;

// Inject stable OAS component name and optional OAS extensions for
// schemas that declare .meta({ id }) / .meta({ openapi: { ... } }).
// Picked up by extractDefsToShared (for $defs entries) and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ import {

export const streamlangOasDefinitions = {
// Core condition — recursive schema referenced throughout routing and processing
Condition: conditionSchema.meta({ id: 'Condition' }),
// .meta({ id: 'Condition' }) is applied at definition time in types/conditions.ts
Condition: conditionSchema,

// DSL root and step types
StreamlangDSL: streamlangDSLSchema.meta({ id: 'StreamlangDSL' }),
StreamlangStep: streamlangStepSchema.meta({ id: 'StreamlangStep' }),
// .meta({ id: 'StreamlangStep' }) is applied at definition time in types/streamlang.ts
StreamlangStep: streamlangStepSchema,

// Union of all processors (useful for $ref in generic processing endpoints)
StreamlangProcessor: streamlangProcessorSchema.meta({ id: 'StreamlangProcessor' }),
Expand Down
Loading
Loading