Values differ only by case

Two [Unique] values differ only by case. This can overwrite files on some systems.

  • Warning
  • BEVEL089

What it means

They are unique, so the build passes. But Windows and macOS treat file names case-insensitively by default, so Intro and intro can overwrite each other when used in a file name or URL.

Example message

text
Data/Posts/BlogPost.cs(6,15): warning BEVEL089: Dataset 'Posts': 'Slug' values 'Intro' ('a.md') and 'intro' ('b.md') differ only by case. They are unique, but if they are used in file names or URLs they can overwrite each other on case-insensitive file systems (Windows, macOS by default). Use [Unique(IgnoreCase = true)] to make this an error. Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel089/

How to fix

Make the values differ by more than case, or use [Unique(IgnoreCase = true)] to make it an error.