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

[OpenAPI] Ignore empty comments #126

Merged
merged 3 commits into from
Jan 28, 2025
Merged

[OpenAPI] Ignore empty comments #126

merged 3 commits into from
Jan 28, 2025

Conversation

rsamoilov
Copy link
Member

Description

The PR updates the OpenAPI parser to ignore empty comments and correctly parse summary in case it is not the first tag, e.g.:

class UsersController < ApplicationController
  # @deprecated
  # Returns the list of all users.
  #
  # @internal this is an internal comment
  def index
  end
end

this ensures summary is parsed correctly if placed after another tags
@rsamoilov rsamoilov merged commit 3f22dc3 into master Jan 28, 2025
6 checks passed
@rsamoilov rsamoilov deleted the openapi-empty-comments branch January 28, 2025 17:36
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.

1 participant