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

Improve Swashbuckle generated code #694

Merged
merged 6 commits into from
Oct 31, 2024
Merged

Conversation

SteveDunn
Copy link
Owner

@SteveDunn SteveDunn commented Oct 30, 2024

Implements #693
Addresses the issue in #691 by adding a namespace to differentiate extension methods in different projects

Refactor code to map value types as nullable and non-nullable. Update TypeAndFormat to include format, and modify mapping functions to handle Nullable types properly.
Updated the `VogenSchemaFilter` to handle `DateOnly`, `DateTime`, `DateTimeOffset`, and `byte` types. Adjusted the test bench to include these new types, ensuring correct OpenAPI schema customization.
If your value objects are in different projects, each requires Vogen configuration. Call the generated `MapVogenTypes` methods explicitly to avoid conflicts due to duplicate signatures.
@SteveDunn SteveDunn merged commit 9aaaea1 into main Oct 31, 2024
5 checks passed
@SteveDunn SteveDunn deleted the improve-swashbuckle-mapping branch October 31, 2024 07:02
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