This rule enforces that theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/aurelienbobenrieth/gadget/llms.txt
Use this file to discover all available pages before exploring further.
actionType property in model action options is set to one of the valid values: create, update, delete, or custom. Invalid action types will cause runtime errors in Gadget.
Rule Details
This rule checks theactionType property in model action options and reports an error if the value is not one of the supported types.
Valid action types:
"create""update""delete""custom"
Examples
Incorrect
Correct
This rule only applies to model actions (files in
api/models/*/actions/). Global actions should not have an actionType property at all.When to Use
This rule is included in therecommended config and should always be enabled for Gadget projects. It prevents runtime errors by catching invalid action types at development time.