From 296266f3ca3d665c4d43d40a1262190dd2a687cc Mon Sep 17 00:00:00 2001 From: Kai Welke Date: Tue, 3 Jun 2025 13:27:48 +0200 Subject: [PATCH] fix(specs): add titles to oneOf options --- specs/common/schemas/HighlightResult.yml | 3 +++ specs/common/schemas/SnippetResult.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/specs/common/schemas/HighlightResult.yml b/specs/common/schemas/HighlightResult.yml index 52381bfd6a8..a78e97e7ebe 100644 --- a/specs/common/schemas/HighlightResult.yml +++ b/specs/common/schemas/HighlightResult.yml @@ -1,4 +1,5 @@ highlightResultOption: + title: highlightResultOption type: object description: Surround words that match the query with HTML tags for highlighting. additionalProperties: false @@ -35,12 +36,14 @@ matchLevel: enum: [none, partial, full] highlightResultArray: + title: highlightResultArray type: array description: Surround words that match the query with HTML tags for highlighting. items: $ref: '#/highlightResult' highlightResultMap: + title: highlightResultMap type: object description: Surround words that match the query with HTML tags for highlighting. x-is-free-form: false # openapi-generator thinks this is a free-form object since https://github.com/OpenAPITools/openapi-generator/pull/19605 diff --git a/specs/common/schemas/SnippetResult.yml b/specs/common/schemas/SnippetResult.yml index 8f9c26de697..17111e645d3 100644 --- a/specs/common/schemas/SnippetResult.yml +++ b/specs/common/schemas/SnippetResult.yml @@ -1,4 +1,5 @@ snippetResultOption: + title: snippetResultOption type: object description: Snippets that show the context around a matching search query. additionalProperties: false @@ -14,6 +15,7 @@ snippetResultOption: - matchLevel snippetResultMap: + title: snippetResultMap type: object description: Snippets that show the context around a matching search query. x-is-free-form: false # openapi-generator thinks this is a free-form object since https://github.com/OpenAPITools/openapi-generator/pull/19605 @@ -22,6 +24,7 @@ snippetResultMap: $ref: '#/snippetResult' snippetResultArray: + title: snippetResultArray type: array description: Snippets that show the context around a matching search query. items: