validate_story_content
Validate story content against a component schema using either a story ID or direct content input. Ensures consistency and adherence to defined structure in Storyblok spaces.
Instructions
Validates a story's content against a component schema.
Either provide story_id (to fetch) or story_content directly.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
component_name | Yes | ||
space_id | No | ||
story_content | No | ||
story_id | No |
Input Schema (JSON Schema)
{
"properties": {
"component_name": {
"title": "Component Name",
"type": "string"
},
"space_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Space Id"
},
"story_content": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Story Content"
},
"story_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Story Id"
}
},
"required": [
"component_name"
],
"title": "validate_story_contentArguments",
"type": "object"
}