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 schema title property to ClassTemplateModelBase #1320

Conversation

mmdtgdev
Copy link
Contributor

I added a property "SchemaTitle" to ClassTemplateModelBase. The reason is that the "ClassName" is not the original one from the swagger file any more (at least the first character is always capitalized). We need the original unchanged title from the Swagger file in the class.liquid file so that we can add a custom attribute with it to the resulting code file on generation.

@RicoSuter
Copy link
Owner

Does it have to be virtual?

@mmdtgdev
Copy link
Contributor Author

You're right - it's not absolutely necessary. I committed another change making it non-virtual. (I just made it virtual to provide the ability to override it in derived classes if needed)

@mmdtgdev
Copy link
Contributor Author

@RicoSuter I don't know why the tests have failed after this very simple change (making prop virtual -> non-virtual) - maybe an one-time error in Azure DevOps? Maybe it's possible for you to manually reschedule a check-run? Thank you very much in advance!

@RicoSuter RicoSuter merged commit 6dfd129 into RicoSuter:master Feb 23, 2021
@RicoSuter
Copy link
Owner

Was a problem with benchmarks (slow DevOps). All fine. Thanks for the PR.

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.

None yet

2 participants