Skip to content

Make ResourceValidationHelper use AipiService if wanted - #1120

Merged
Toastbrot236 merged 9 commits into
LittleBigRefresh:mainfrom
Toastbrot236:aipi-use
Aug 29, 2026
Merged

Make ResourceValidationHelper use AipiService if wanted#1120
Toastbrot236 merged 9 commits into
LittleBigRefresh:mainfrom
Toastbrot236:aipi-use

Conversation

@Toastbrot236

Copy link
Copy Markdown
Contributor

This is a followup PR which makes ResourceValidationHelper actually use AipiService if it's provided as a parameter and the validated asset is an image. It also fixes a bug where GameAssets auto-imported by ResourceValidationHelper were not being added to the database.

Additionally, this also marks the AipiService parameter on various endpoint methods as nullable to suppress useless warnings incase AIPI integration is disabled, and also suppresses a similar warning for ResourceEndpoints.UploadAsset()'s type route parameter, since it will be missing from ~99% of all game requests.

This PR doesn't introduce any AIPI-related unit tests because that is blocked by #1118.

Signed-off-by: ToasterTheBrot <95178340+Toastbrot236@users.noreply.github.com>
Signed-off-by: ToasterTheBrot <95178340+Toastbrot236@users.noreply.github.com>
@Toastbrot236
Toastbrot236 merged commit 6c68d94 into LittleBigRefresh:main Aug 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants