Skip to content

Commit

Permalink
fix deps (#1724)
Browse files Browse the repository at this point in the history
Signed-off-by: sdghchj <sdghchj@qq.com>
  • Loading branch information
sdghchj committed Dec 19, 2023
1 parent 7603121 commit 9fdba3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (operation *Operation) ParseComment(comment string, astFile *ast.File) erro
return nil
}

// ParseCodeSample godoc.
// ParseCodeSample parse code sample.
func (operation *Operation) ParseCodeSample(attribute, _, lineRemainder string) error {
if lineRemainder == "file" {
data, err := getCodeExampleForSummary(operation.Summary, operation.codeExampleFilesDir)
Expand All @@ -186,12 +186,12 @@ func (operation *Operation) ParseCodeSample(attribute, _, lineRemainder string)
return operation.ParseMetadata(attribute, strings.ToLower(attribute), lineRemainder)
}

// ParseDescriptionComment godoc.
// ParseStateComment parse state comment.
func (operation *Operation) ParseStateComment(lineRemainder string) {
operation.State = lineRemainder
}

// ParseDescriptionComment godoc.
// ParseDescriptionComment parse description comment.
func (operation *Operation) ParseDescriptionComment(lineRemainder string) {
if operation.Description == "" {
operation.Description = lineRemainder
Expand All @@ -202,7 +202,7 @@ func (operation *Operation) ParseDescriptionComment(lineRemainder string) {
operation.Description += "\n" + lineRemainder
}

// ParseMetadata godoc.
// ParseMetadata parse metadata.
func (operation *Operation) ParseMetadata(attribute, lowerAttribute, lineRemainder string) error {
// parsing specific meta data extensions
if strings.HasPrefix(lowerAttribute, "@x-") {
Expand Down

0 comments on commit 9fdba3e

Please sign in to comment.