Skip to content

Conversation

@MaggieKimani1
Copy link
Contributor

Fixes #732

{
public static class OpenApiSpecVersionExtension
{
public static OpenApiSpecVersion TryParseOpenApiSpecVersion(this string value)
Copy link
Member

Choose a reason for hiding this comment

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

Extension methods on very commonly used types like string are not usually recommended. If every use of a string did this it would hugely increase the surface are of the String class. I would suggest just renaming this to OpenApiSpecVersionHelper and accept the string as a regular parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing this out. Resolving...

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.

Simplify The OpenAPI version format supplied in Hidi

4 participants