-
Notifications
You must be signed in to change notification settings - Fork 2
GhJSON validation error requires correct Id or fallback logic #396
Copy link
Copy link
Labels
component: AI ScriptGeneratorIssues related to the AI Script Generate componentIssues related to the AI Script Generate componentstatus: in progressIssue is currently being worked onIssue is currently being worked on
Milestone
Description
Description
Issue identified by @nofcfy-fanqi in #389 :
GhJSON validation error occurs when creating or editing scripts. If neither Id nor InstanceGuid are provided to GhJSON.Core, it produces an error: "Component must have either 'id' or 'instanceGuid'". The ID assignment logic is still new and might require additional testing; in future releases, either a correct Id will be provided or GhJSON.Core will be modified to automatically set it.
Operating System
macOS
Rhino Version
RH8.28
SmartHopper Version
1.4.0-alpha
Steps to Reproduce
- Generate or edit a script using SmartHopper
- GhJSONComponent is created with InstanceGuid = null and Id is not set
- Attempt to validate or save the GhJSON
- Observe debug error indicating missing Id or InstanceGuid.
Expected Behavior
Script Generation should provide the correct ID, or GhJSON.Core should automatically assign a valid Id if none is provided.
Additional Material
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: AI ScriptGeneratorIssues related to the AI Script Generate componentIssues related to the AI Script Generate componentstatus: in progressIssue is currently being worked onIssue is currently being worked on