Skip to content

Commit 04716ca

Browse files
committed
Document the ruby spec validator.
Signed-off-by: dblock <[email protected]>
1 parent fc4730c commit 04716ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

DEVELOPER_GUIDE.md

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- [Test Tools (Integration)](#test-tools-integration)
2929
- [Validate Spec (Lint)](#validate-spec-lint)
3030
- [Validate Spec (Python)](#validate-spec-python)
31+
- [Validate Spec (Ruby)](#validate-spec-ruby)
3132
<!-- TOC -->
3233

3334
# Developer Guide
@@ -383,3 +384,7 @@ This workflow runs on PRs to invoke the [spec linter](#spec-linter) and ensure t
383384
### [Validate Spec (Python)](.github/workflows/validate-spec-py.yml)
384385

385386
This workflow runs on PRs to invoke the [Python openapi-spec-validator](https://pypi.org/project/openapi-spec-validator/) to ensure that the resulting spec can be loaded by Python tools.
387+
388+
### [Validate Spec (Ruby)](.github/workflows/validate-spec-ruby.yml)
389+
390+
This workflow runs on PRs to invoke the Ruby [Json Schemer](https://github.com/davishmcclurg/json_schemer/) to ensure that the resulting spec can be loaded by Ruby tools.

tools/src/validate-spec-ruby/validate.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
total_errors = 0
1313
schemer.validate.each do |error|
14-
puts "#{error['data_pointer']}: #{error['error']}" # if total_errors < 100
14+
puts "#{error['data_pointer']}: #{error['error']}" if total_errors < 10
1515
total_errors += 1
1616
end
1717

0 commit comments

Comments
 (0)