@@ -23,7 +23,7 @@ export abstract class ParserBaseService {
2323 protected isEnumObject (
2424 rawAttribute : any ,
2525 ) : rawAttribute is OpenAPIV3 . SchemaObject {
26- if ( ( rawAttribute as OpenAPIV3 . SchemaObject ) . enum ) {
26+ if ( ( rawAttribute as OpenAPIV3 . SchemaObject ) ? .enum ) {
2727 return true ;
2828 }
2929 return false ;
@@ -32,7 +32,7 @@ export abstract class ParserBaseService {
3232 protected isRefObject (
3333 rawAttribute : any ,
3434 ) : rawAttribute is OpenAPIV3 . ReferenceObject {
35- if ( ( rawAttribute as OpenAPIV3 . ReferenceObject ) . $ref ) {
35+ if ( ( rawAttribute as OpenAPIV3 . ReferenceObject ) ? .$ref ) {
3636 return true ;
3737 }
3838 return false ;
@@ -41,7 +41,7 @@ export abstract class ParserBaseService {
4141 protected isSchemaObject (
4242 rawAttribute : any ,
4343 ) : rawAttribute is OpenAPIV3 . SchemaObject {
44- if ( ( rawAttribute as OpenAPIV3 . SchemaObject ) . type ) {
44+ if ( ( rawAttribute as OpenAPIV3 . SchemaObject ) ? .type ) {
4545 return true ;
4646 }
4747 return false ;
@@ -50,7 +50,7 @@ export abstract class ParserBaseService {
5050 protected isParameterObject (
5151 rawAttribute : any ,
5252 ) : rawAttribute is OpenAPIV3 . ParameterObject {
53- if ( ( rawAttribute as OpenAPIV3 . ParameterObject ) . name ) {
53+ if ( ( rawAttribute as OpenAPIV3 . ParameterObject ) ? .name ) {
5454 return true ;
5555 }
5656 return false ;
@@ -59,7 +59,7 @@ export abstract class ParserBaseService {
5959 protected isRequestBodyObject (
6060 rawAttribute : any ,
6161 ) : rawAttribute is OpenAPIV3 . RequestBodyObject {
62- if ( ( rawAttribute as OpenAPIV3 . RequestBodyObject ) . content ) {
62+ if ( ( rawAttribute as OpenAPIV3 . RequestBodyObject ) ? .content ) {
6363 return true ;
6464 }
6565 return false ;
@@ -68,7 +68,7 @@ export abstract class ParserBaseService {
6868 protected isResponseObject (
6969 rawAttribute : any ,
7070 ) : rawAttribute is OpenAPIV3 . ResponseObject {
71- if ( ( rawAttribute as OpenAPIV3 . ResponseObject ) . content ) {
71+ if ( ( rawAttribute as OpenAPIV3 . ResponseObject ) ? .content ) {
7272 return true ;
7373 }
7474 return false ;
0 commit comments