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

Expose tags in operation model base #4213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chivandikwa
Copy link

Expose operation tags in the OperationModelBase. These will come very handy on overriding template and to make it easy to work with from liquid I have exposed these as a comma delimited string.

Please kindly accept this PR if this change is reasonable and adheres to standards, thanks.

@@ -289,6 +289,9 @@ public string Produces
/// <summary>Gets the operation extension data.</summary>
public IDictionary<string, object> ExtensionData => _operation.ExtensionData;

/// <summary>Gets the operation tags </summary>
public string Tags => string.Join(",", _operation.Tags);
Copy link
Owner

Choose a reason for hiding this comment

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

I think we should expose the string array, allows more custom scenarios in templates and you can still join within the liquid templates if needed.

Copy link
Author

Choose a reason for hiding this comment

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

Lovely, that makes sense. I will make the change

Copy link
Contributor

Choose a reason for hiding this comment

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

Addressed this PR comment in pr #4807
Kindly review that PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants