Skip to content

Commit cf7790f

Browse files
authored
Revert "Emit codegen_name for response value bodies (#3953) (#4007)" (#4046)
This reverts commit 02cf0be.
1 parent 193ed1d commit cf7790f

File tree

5 files changed

+9
-62
lines changed

5 files changed

+9
-62
lines changed

compiler/src/model/build-model.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -383,18 +383,7 @@ function compileClassOrInterfaceDeclaration (declaration: ClassDeclaration | Int
383383
if (property.valueOf.kind === 'instance_of' && property.valueOf.type.name === 'Void') {
384384
type.body = { kind: 'no_body' }
385385
} else {
386-
const tags = parseJsDocTags((member as PropertySignature).getJsDocs())
387-
// TODO: Enable this after adding the missing codegen names.
388-
// assert(
389-
// member as Node,
390-
// tags.codegen_name != null,
391-
// 'You should configure a body @codegen_name'
392-
// )
393-
type.body = {
394-
kind: 'value',
395-
value: property.valueOf,
396-
codegenName: tags.codegen_name
397-
}
386+
type.body = { kind: 'value', value: property.valueOf }
398387
}
399388
} else {
400389
type.body = { kind: 'properties', properties: property.properties }

output/openapi/elasticsearch-openapi.json

Lines changed: 2 additions & 2 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: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

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

0 commit comments

Comments
 (0)