dotnet-cqrs/Svrnty.CQRS.Grpc.Generators
David Nguyen 99aebcf314
Fix proto generation for collection types (NpgsqlPolygon, etc.)
- Add IsCollectionTypeByInterface() to detect types implementing IList<T>, ICollection<T>, IEnumerable<T>
- Add GetCollectionElementTypeByInterface() to extract element type from collection interfaces
- Add IsCollectionInternalProperty() to filter out Count, Capacity, IsReadOnly, etc.
- Update GenerateComplexTypeMessage to generate `repeated T items` for collection types
- Filter out indexers (!p.IsIndexer) and collection-internal properties from all property extraction

This fixes the invalid proto syntax where C# indexers (this[]) were being generated
as proto fields, causing proto compilation errors.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 10:33:55 -05:00
..
build fix nuget package for Generator assembly? 2025-11-07 12:48:00 -05:00
Helpers cat on a spaceship 2025-11-01 22:38:46 -04:00
Models fix: add Guid to string conversion in gRPC source generator 2025-12-27 19:06:18 -05:00
GrpcGenerator.cs fix: add Guid to string conversion in gRPC source generator 2025-12-27 19:06:18 -05:00
ProtoFileGenerator.cs Fix proto generation for collection types (NpgsqlPolygon, etc.) 2026-01-06 10:33:55 -05:00
ProtoFileSourceGenerator.cs added domain events, fix IQueryalbeProvider abstraction, added support for sagas and RabbitMQ 2025-12-20 15:13:05 -05:00
ProtoTypeMapper.cs Fix proto generation for collection types (NpgsqlPolygon, etc.) 2026-01-06 10:33:55 -05:00
Svrnty.CQRS.Grpc.Generators.csproj fix nuget package for Generator assembly? 2025-11-07 12:48:00 -05:00
WriteProtoFileTask.cs added domain events, fix IQueryalbeProvider abstraction, added support for sagas and RabbitMQ 2025-12-20 15:13:05 -05:00