I have .js file whose content is as below... where companyAssociations
is list of object for which i have defined schema on top in var...
function() {
var companyAssociationsSchema = '{"companyId":"#string", "displayName":"#string", "associationType":"#string", "companyType":"#string" }';
return {
"StationSchema":{
"stationId":"#string",
"companyAssociations":"#[] "+ companyAssociationsSchema,
"primaryBroadcastLanguage":"#string"
}
}
}
and here is how i read/load schema in my feature file * def getStationResponse = call read(path to above file)
and than wherever i need to check for above schema i refer to it as getStationResponse.StationSchema
above works in karate 0.9.6 but i am having hard time getting same thing working in karate 1.1.0
Any help would be appreciated