Skip to content

Make ResourceValidationHelper use AipiService if wanted - #1120

Open
Toastbrot236 wants to merge 7 commits into
LittleBigRefresh:mainfrom
Toastbrot236:aipi-use
Open

Make ResourceValidationHelper use AipiService if wanted#1120
Toastbrot236 wants to merge 7 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.

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.

1 participant