Apify Discord Mirror

Updated 5 months ago

Output schema not accepted

At a glance

The community member is trying to use an output schema in their actor.json file, but is encountering an error that the "properties" property is required. The community member has the "properties" property in their output_schema.json file, but is still getting the error. Another community member suggests that the "properties" property is not actually required, based on the documentation. The original community member then states that they "figured it out" and that the issue was due to improper nesting or formatting typos.

Useful resources
Hi there, I'm trying to use an output schema. I have a line in my actor.json file "output": "./output_schema.json", and then an output_schema.json file in the .actor folder (attached). When I try building my actor I get the following error:

{
"instancePath": "",
"schemaPath": "#/required",
"keyword": "required",
"params": {
"missingProperty": "properties"
},
"message": "must have required property 'properties'"
}
]


I have a properties property (lol) on line 26. Any ideas what I'm doing wrong?
A
2 comments
In the documentation it even says that properties is not required, but when I remove it entirely I get the same issue: https://docs.apify.com/platform/actors/development/actor-definition/output-schema
I figured it out... it was nested wrong... damn formatting typos
Add a reply
Sign up and join the conversation on Discord