Skip to content

Commit

Permalink
rm duplicate breaking examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven committed May 26, 2023
1 parent a6fed12 commit e28ccf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion BREAKING-CHANGES-EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ These examples are automatically generated from unit tests.
[changing an existing property in request body items to required is breaking](checker/checker_breaking_property_test.go?plain=1#L595)
[changing an existing property in request body to enum is breaking](checker/checker_breaking_property_test.go?plain=1#L168)
[changing an existing property in request body to required is breaking](checker/checker_breaking_property_test.go?plain=1#L320)
[changing an existing property in request body to required is breaking](checker/checker_breaking_property_test.go?plain=1#L579)
[changing an existing property in request header to enum is breaking](checker/checker_breaking_property_test.go?plain=1#L200)
[changing an existing property in request header to required is breaking](checker/checker_breaking_property_test.go?plain=1#L56)
[changing an existing property in response body to optional is breaking](checker/checker_breaking_property_test.go?plain=1#L106)
Expand Down
4 changes: 2 additions & 2 deletions scripts/doc_breaking_changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ echo "# Examples of Breaking and Non-Breaking Changes"
echo "These examples are automatically generated from unit tests."

echo "## Examples of breaking changes"
grep -n '// BC:' checker/*.go | grep "is breaking" | sed -n "s/\([^0-9]*\):\([0-9]*\):\/\/ BC: \(.*\)/[\3](\1?plain=1#L\2) /p" | sort
grep -n '// BC:' checker/*.go | grep "is breaking" | sort -u -k2 | sed -n "s/\([^0-9]*\):\([0-9]*\):\/\/ BC: \(.*\)/[\3](\1?plain=1#L\2) /p" | sort

echo ""
echo "## Examples of non-breaking changes"
grep -n '// BC:' checker/*.go | grep "is not breaking" | sed -n "s/\([^0-9]*\):\([0-9]*\):\/\/ BC: \(.*\)/[\3](\1?plain=1#L\2) /p" | sort
grep -n '// BC:' checker/*.go | grep "is not breaking" | sort -u -k2 | sed -n "s/\([^0-9]*\):\([0-9]*\):\/\/ BC: \(.*\)/[\3](\1?plain=1#L\2) /p" | sort

0 comments on commit e28ccf4

Please sign in to comment.