Skip to content

Fix Display(Name) not setting schema title on classes#1906

Merged
lahma merged 1 commit intoRicoSuter:masterfrom
lahma:fix/display-name-title-1776
Mar 8, 2026
Merged

Fix Display(Name) not setting schema title on classes#1906
lahma merged 1 commit intoRicoSuter:masterfrom
lahma:fix/display-name-title-1776

Conversation

@lahma
Copy link
Copy Markdown
Collaborator

@lahma lahma commented Mar 8, 2026

Summary

Test plan

  • Added test When_class_has_Display_Name_then_schema_title_is_set verifying both Title and Description are set
  • All tests pass (457 passed, 7 skipped, 0 failed)

🤖 Generated with Claude Code

@lahma lahma force-pushed the fix/display-name-title-1776 branch 2 times, most recently from 3a7c7fe to 8dc380b Compare March 8, 2026 18:27
Extract title from DisplayAttribute.GetName() in GenerateObject,
mirroring the existing description extraction. Previously only worked
on properties via ApplyDataAnnotations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lahma lahma force-pushed the fix/display-name-title-1776 branch from 8dc380b to fbc2ef3 Compare March 8, 2026 18:46
@lahma lahma merged commit 7c71bef into RicoSuter:master Mar 8, 2026
2 checks passed
@lahma lahma deleted the fix/display-name-title-1776 branch March 8, 2026 18:53
This was referenced Apr 8, 2026
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.

Unable to control schema title using System.ComponentModel.DataAnnotations.Display

1 participant