Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for namespace not set correctly in MediatR commands. Fix analyzer #110

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

mattwill09
Copy link
Contributor

No description provided.

@@ -33,7 +33,7 @@ public string Map(OpenApiSchema schema, string? ns = null)
("string", "date") => "System.DateOnly",
("string", "date-time") => "System.DateTimeOffset",
("string", _) => "string",
("array", _) => $"System.Collections.Generic.IEnumerable<{Map(schema.Items)}>",
("array", _) => $"System.Collections.Generic.IEnumerable<{Map(schema.Items, ns)}>",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alexcampana - this was the bit that was missing and caused incorrect code generation some of the time.

@alexcampana alexcampana merged commit f3acbfb into alexcampana:main Jan 27, 2025
1 check 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.

2 participants