Input schema is not valid (Field schema.properties.files.enum is required)

input_schema.json ''' { "title": "Base64 Image Processor", "type": "object", "schemaVersion": 1, "properties": { "files": { "type": "array", "description": "Array of file objects to process", "items": { "type": "object", "properties": { "file": { "type": "object", "properties": { "name": {"type": "string"}, "type": {"type": "string"}, "size": {"type": "integer"}, "content": {"type": "string"}, "description": {"type": "string"} }, "required": ["name", "type", "size", "content", "description"] } }, "required": ["file"] } } }, "required": ["files"] } ''' run and start show error 2025-03-16T08:19:28.275Z ACTOR: ERROR: Input schema is not valid (Field schema.properties.files.enum is required) need help
2 Replies
Hall
Hall2mo ago
Someone will reply to you shortly. In the meantime, this might help:
other-emerald
other-emerald2mo ago
You might have a mistake in one of your schema properties. Check out the full input schema specification here: https://docs.apify.com/platform/actors/development/actor-definition/input-schema/specification/v1 To make things easier, you can use the visual input schema editor: https://apify.github.io/input-schema-editor-react/ To validate your schema, you can refer to this JSON schema file: https://github.com/apify/apify-shared-js/blob/master/packages/input_schema/src/schema.json You can also use the apify validate-schema command in the Apify CLI.

Did you find this page helpful?