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 {
213213 this . schema = { type : this . config . Ts . Keyword . Null } ;
214214 }
215215 // 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" ) {
220217 const schema = this . extractSchemaFromResponseStruct ( this . schema ) ;
221218 const schemaParser = this . schemaParserFabric . createSchemaParser ( {
222219 schema,
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ class SchemaUtils {
3333 } ;
3434
3535 isRefSchema = ( schema ) => {
36- return ! ! schema ?. [ " $ref" ] ;
36+ return ! ! schema ?. $ref ;
3737 } ;
3838
3939 getEnumNames = ( schema ) => {
4040 return (
4141 schema [ "x-enumNames" ] ||
42- schema [ " xEnumNames" ] ||
42+ schema . xEnumNames ||
4343 schema [ "x-enumnames" ] ||
4444 schema [ "x-enum-varnames" ]
4545 ) ;
You can’t perform that action at this time.
0 commit comments