Forum Discussion

Gayathri47's avatar
Gayathri47
Occasional Visitor
2 years ago

if else conditions in yml file.

Hi Team,

 

Issue:

When a collection A contain a parameter as Param_1, which has boolean datatype. If this Param_1 value is false, then in collection B, collection C, etc. I want to hide few more parameters. Please help me on how we can do this. For instance, 

 

mobileAppActive:
type: boolean 

 

 

        mobileAppParameters:
          type: object
          properties:   
            mobileAppActive:
              type: boolean  
              default: false      

When the above value is set to "False", I don't want to show the below Object.

        mobileAppRequest:
          type: object
          description: Mobile App Request
          properties:   
            deliveryMode:
              type: string

 

 

No RepliesBe the first to reply