Is there any examples of using enum in csx script.
I need to use it in the context of DynamicSchema returned by the C# csx script.
I tried searching in the community forum and there is no post with detail on that.
Here is the script I am attempting.
....
if (tabType.Equals("textTabs", StringComparison.OrdinalIgnoreCase))
{
response["schema"]["properties"]["tabs"]["items"]["properties"]["value"] = new JObject
{
["type"] = "string",
["enum"] = getFonts(),
["x-ms-summary"] = "value"
};
}
}
return CreateJsonContent(response.ToString());
}
private static string getFonts()
{
return "[\"Arial\",\"Times\"]";
}