Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Simplify openapi spec version for Hidi#767

Merged
darrelmiller merged 5 commits intovnextmicrosoft/OpenAPI.NET:vnextfrom
fix/simplify-openapi-spec-versionmicrosoft/OpenAPI.NET:fix/simplify-openapi-spec-versionCopy head branch name to clipboard
Mar 9, 2022
Merged

Simplify openapi spec version for Hidi#767
darrelmiller merged 5 commits intovnextmicrosoft/OpenAPI.NET:vnextfrom
fix/simplify-openapi-spec-versionmicrosoft/OpenAPI.NET:fix/simplify-openapi-spec-versionCopy head branch name to clipboard

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

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.