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

Add name generators for property type and enum #28

Merged
merged 3 commits into from
Jan 18, 2024
Merged

Conversation

glopesdev
Copy link
Member

@glopesdev glopesdev commented Jan 18, 2024

NJsonSchema supports implementing name generator interfaces to control more specifically how the names for different entities are generated. This PR overrides the default name generators from NJsonSchema with the PascalNamingConvention implementation from YamlDotNet which supports full hyphen-case and snake_case conversions.

Fixes #26

@glopesdev glopesdev added the fix Pull request that fixes an issue label Jan 18, 2024
@glopesdev glopesdev changed the title Add name generators for type, property and enum Add name generators for property type and enum Jan 18, 2024
@glopesdev glopesdev merged commit 67c26cd into main Jan 18, 2024
2 checks passed
@glopesdev glopesdev deleted the casing-rules branch January 18, 2024 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding automatic snake to pascal case conversion of properties
1 participant