Skip to content

Conversation

@zade107
Copy link

@zade107 zade107 commented Nov 12, 2025

This pull request updates the test site to use Umbraco CMS version 16 and regenerates the ModelsBuilder classes to reflect changes in the new version. The most significant changes involve updating property types for media models and removing explicit version strings from generated code attributes.

Umbraco CMS Version Upgrade:

  • Upgraded the NuGet package reference for Umbraco.Cms from version 15.0.0 to 16.0.0 in DeliveryApiModelMapper.TestSite.csproj, ensuring compatibility with the latest features and bug fixes.

Generated ModelsBuilder Code Updates:

Media Model Property Type Improvements:

  • Changed the types of media properties such as UmbracoBytes (from string to long), UmbracoHeight, and UmbracoWidth (from string to int) in both Image and File models, providing more accurate typing for these values. [1] [2]

These changes ensure the project is up-to-date with the latest Umbraco CMS and improve the reliability and maintainability of the generated model code.

"ModelsDirectory": "~/Models/ModelsBuilder",
"ModelsNamespace": "DeliveryApiModelMapper.TestSite.Models.ModelsBuilder"
"ModelsNamespace": "DeliveryApiModelMapper.TestSite.Models.ModelsBuilder",
"IncludeVersionNumberInGeneratedModels": false
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

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.

3 participants