Skip to content

Commit b7ecb5c

Browse files
committed
Merge remote-tracking branch 'origin/9.1' into backport/9.1/pr-5370
2 parents 8af7881 + efed133 commit b7ecb5c

File tree

73 files changed

+627
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+627
-280
lines changed

compiler/src/steps/add-description.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,6 @@ export default async function addDescription (model: model.Model, jsonSpec: Map<
3232
const spec = jsonSpec.get(endpoint.name)
3333
assert(spec, `Can't find the json spec for ${endpoint.name}`)
3434

35-
for (const property of requestDefinition.path) {
36-
const definition = spec.url.paths.find(path => {
37-
if (path.parts == null) return false
38-
return path.parts[property.name] != null
39-
})
40-
if (definition?.parts != null) {
41-
const { description } = definition.parts[property.name]
42-
if (typeof description === 'string') {
43-
property.description = property.description ?? description
44-
}
45-
}
46-
}
47-
48-
if (spec.params != null) {
49-
for (const property of requestDefinition.query) {
50-
const param = spec.params[property.name]
51-
if (param != null && typeof param.description === 'string') {
52-
property.description = property.description ?? param.description
53-
}
54-
}
55-
}
56-
5735
if (spec.documentation.description != null) {
5836
requestDefinition.description = requestDefinition.description ?? spec.documentation.description
5937
}

output/openapi/elasticsearch-openapi.json

Lines changed: 71 additions & 72 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)