Skip to content

Commit

Permalink
Fix invalid memory address (#272)
Browse files Browse the repository at this point in the history
* Update Makefile

* Update check-response-property-type-changed.go

* Revert "Update Makefile"

This reverts commit 211f1f3.

* Update check-response-property-type-changed.go
  • Loading branch information
andreaangiolillo authored May 31, 2023
1 parent d2f0eb4 commit b442719
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions checker/check-response-property-type-changed.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func ResponsePropertyTypeChangedCheck(diffReport *diff.Diff, operationsSources *
CheckModifiedPropertiesDiff(
mediaTypeDiff.SchemaDiff,
func(propertyPath string, propertyName string, propertyDiff *diff.SchemaDiff, parent *diff.SchemaDiff) {
if propertyDiff == nil || propertyDiff.Revision == nil || propertyDiff.Revision.Value == nil {
return
}

if propertyDiff.Revision.Value.ReadOnly {
return
}
Expand Down

0 comments on commit b442719

Please sign in to comment.