Skip to content

Commit

Permalink
msgraph-importer: bug fix for missing operations
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Jul 8, 2023
1 parent 28bbcbf commit eb8ba4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (p pipelineTask) templateDefinitionsForService(commonTypesDirectoryName str
// Determine whether to skip operation with missing response model
if operation.Type != OperationTypeDelete {
if responseModel := operation.Responses.FindModelName(); responseModel != nil {
if operation.ResourceId == nil || len(operation.ResourceId.Segments) == 0 || operation.ResourceId.Segments[len(operation.ResourceId.Segments)-1].Value != "$ref" {
if operation.ResourceId == nil || len(operation.ResourceId.Segments) == 0 {
continue
}
}
Expand Down

0 comments on commit eb8ba4c

Please sign in to comment.