Skip to content

Commit 7204a45

Browse files
committed
Revert spec insert changes
Signed-off-by: Fanit Kolchina <[email protected]>
1 parent 159aa43 commit 7204a45

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

spec-insert/lib/doc_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def find_insertions(lines)
4646
.filter { |line, _index| line.match?(START_MARKER) }
4747
.map { |_line, index| index }
4848
end_indices = start_indices.map do |index|
49-
(index..(lines.length - 1)).find { |i| lines[i].match?(END_MARKER) }
49+
(index..lines.length - 1).find { |i| lines[i].match?(END_MARKER) }
5050
end.compact
5151

5252
validate_markers!(start_indices, end_indices)

spec-insert/lib/renderers/path_parameters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def table
1111
ParameterTableRenderer.new(params, @args).render
1212
end
1313

14-
def optional?
14+
def optional
1515
params.none?(&:required)
1616
end
1717

spec-insert/lib/renderers/query_parameters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def table
1111
ParameterTableRenderer.new(params, @args).render
1212
end
1313

14-
def optional?
14+
def optional
1515
params.none?(&:required)
1616
end
1717

spec-insert/lib/reports/dry_run_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize
1717
generate_dry_runs
1818
end
1919

20-
def any_errors?
20+
def any_errors
2121
@errors_report.keys.any?
2222
end
2323

spec-insert/spec/_fixtures/expected_output/url_params_tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ component: path_parameters
66
-->
77
## Path parameters
88

9-
The following table lists the available path parameters.
9+
The following table lists the available path parameters. All path parameters are optional.
1010

1111
| Parameter | Data type | Description |
1212
| :--- | :--- | :--- |

0 commit comments

Comments
 (0)