Contributions
swagger schema to have a property whose value is concatenation of a string and a property value
1. I have my body schema as below. How can I use the value of type property in my eventName property? 2. what's the best way to set the audit value to true in the schema "refreshSchema": { "type": "object", "properties": { "sourceTns": {"type": "string"}, "backupDate": {"type": "string"}, "type": {"type": "string","enum":["CMP_BUILD","STANDARD","CMP_UPGRADE_TRIAL","CMP_UPGRADE_CUTOVER"]}, "audit": {"type": "boolean","default":true}, "auditEventName": {"type": "string","default":"Create refresh of type -{type}"} }, "required": [ "sourceTns", "backupDate", "type" ], "additionalProperties": false } I want the object with values to be like this - "sourceTns" : "abcd", "backupDate": "latest", "type":"CMP_BUILD", "audit": true, "auditEventName":"Create refresh of type - CMP_BUILD"Solved3.3KViews0likes3Comments