If usage of a deprecated API function call is detected, we should log out the deprecation message:
{
"name": "addScriptToEvaluateOnLoad",
"parameters": [
{
"name": "scriptSource",
"type": "string"
}
],
"returns": [
{
"name": "identifier",
"$ref": "ScriptIdentifier",
"description": "Identifier of the added script."
}
],
"deprecated": true,
"description": "Deprecated, please use addScriptToEvaluateOnNewDocument instead.",
"experimental": true
}
Here, we can parse out the deprecated boolean attribute and log out the description.
If usage of a deprecated API function call is detected, we should log out the deprecation message:
{ "name": "addScriptToEvaluateOnLoad", "parameters": [ { "name": "scriptSource", "type": "string" } ], "returns": [ { "name": "identifier", "$ref": "ScriptIdentifier", "description": "Identifier of the added script." } ], "deprecated": true, "description": "Deprecated, please use addScriptToEvaluateOnNewDocument instead.", "experimental": true }Here, we can parse out the
deprecatedboolean attribute and log out thedescription.