Skip to content

feat(api): add ArtworkType and ImageType models and endpoints - #49

Merged
kamranayub merged 2 commits into
masterfrom
claude/festive-ride-wjdozg
Sep 24, 2026
Merged

kamranayub merged 2 commits into
masterfrom
claude/festive-ride-wjdozg

Conversation

@kamranayub

@kamranayub kamranayub commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Closes #47.

Adds the missing artwork_types endpoint and ArtworkType model. The IGDB docs mark Artwork Type as deprecated in favor of Image Type, so this PR adds that too, instead of shipping a type that's already on its way out.

Changes

  • New models ArtworkType (checksum, created_at, name, slug, updated_at) and ImageType (checksum, created_at, name, updated_at), following the WebsiteType / PlatformType pattern.
  • New endpoint constants ArtworkTypes = "artwork_types" and ImageTypes = "image_types".
  • Artwork gains ArtworkType and ImageType references. Cover gains ImageType. Per the docs, those are the only two models that expose image_type.
  • Deprecated fields are left as plain properties with no [Obsolete], matching how the repo has handled upstream deprecations before (keep until IGDB removes them).

Tests

IGDB.Tests/Artworks.cs adds 5 live API tests covering both type endpoints, plus Artwork and Cover with the new references expanded. These also exercise deserialization of the new properties.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PxwSfew6PVJAv75hDKBpMm

Adds the artwork_types and image_types endpoints and models, plus the
artwork_type and image_type references on Artwork and image_type on
Cover, per the IGDB API docs. Artwork Type is deprecated upstream in
favor of Image Type but still returned by the API.

Closes #47

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PxwSfew6PVJAv75hDKBpMm

@kamranayub kamranayub left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change!

Comment thread IGDB.Tests/Serialization.cs Resolved
The live Artworks tests already cover deserializing the new
ArtworkType and ImageType references.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PxwSfew6PVJAv75hDKBpMm

@kamranayub kamranayub left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, ship it

@kamranayub
kamranayub merged commit fdbc037 into master Sep 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ArtworkType model is not included

2 participants