Skip to content

Conversation

@avgalex
Copy link
Member

@avgalex avgalex commented Dec 23, 2025

No description provided.

avgalex and others added 2 commits December 23, 2025 13:20
In Microsoft.OpenApi 2.x (used by Swashbuckle 10.x), enum properties
are represented as OpenApiSchemaReference instead of OpenApiSchema.
The GetProperties() method was performing a direct cast which failed
for these schema references.

Changes:
- Filter out OpenApiSchemaReference entries in GetProperties() method
- Add unit test for models containing enum properties

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@avgalex avgalex merged commit 6fb2e55 into micro-elements:master Dec 23, 2025
2 checks 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.

1 participant