Hi Sriram J Iyer
Thanks for reply back
To clarify the use of sourceContent in your JSON schema, first understand the schema's structure and purpose, especially for workbooks and workbook templates.
Understanding JSON schema structure:
1.JSON Schema Basics: A JSON schema defines the structure, required fields, and data types of a JSON object using keywords like $schema, type, properties, and required.
2.Using sourceContent : If sourceContent is not defined in your schema, it won't be recognized during validation. Define it explicitly in the properties section.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"sourceContent": {
"type": "string",
"description": "The content source for the workbook"
}
},
"required": ["sourceContent"]
}
3.Common Issues: Replacing loadFromTemplateId with sourceContent without defining sourceContent can cause errors or unexpected behavior. Ensure all properties are properly defined.
4.Debugging Steps:
Check if loadFromTemplateId is referenced elsewhere and ensure its functionality matches your intent for sourceContent.
Validate the updated schema using a validator tool to avoid syntax errors before applying changes.
If you required anything let us know.