File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -213,10 +213,7 @@ class SchemaParser {
213
213
this . schema = { type : this . config . Ts . Keyword . Null } ;
214
214
}
215
215
// schema is response schema
216
- if (
217
- "content" in this . schema &&
218
- typeof this . schema [ "content" ] === "object"
219
- ) {
216
+ if ( "content" in this . schema && typeof this . schema . content === "object" ) {
220
217
const schema = this . extractSchemaFromResponseStruct ( this . schema ) ;
221
218
const schemaParser = this . schemaParserFabric . createSchemaParser ( {
222
219
schema,
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ class SchemaUtils {
33
33
} ;
34
34
35
35
isRefSchema = ( schema ) => {
36
- return ! ! schema ?. [ " $ref" ] ;
36
+ return ! ! schema ?. $ref ;
37
37
} ;
38
38
39
39
getEnumNames = ( schema ) => {
40
40
return (
41
41
schema [ "x-enumNames" ] ||
42
- schema [ " xEnumNames" ] ||
42
+ schema . xEnumNames ||
43
43
schema [ "x-enumnames" ] ||
44
44
schema [ "x-enum-varnames" ]
45
45
) ;
You can’t perform that action at this time.
0 commit comments