diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md index e8d7ca551..e14a3920d 100644 --- a/DEVELOPER_GUIDE.md +++ b/DEVELOPER_GUIDE.md @@ -28,6 +28,7 @@ - [Test Tools (Integration)](#test-tools-integration) - [Validate Spec (Lint)](#validate-spec-lint) - [Validate Spec (Python)](#validate-spec-python) + - [Validate Spec (Ruby)](#validate-spec-ruby) # Developer Guide @@ -383,3 +384,7 @@ This workflow runs on PRs to invoke the [spec linter](#spec-linter) and ensure t ### [Validate Spec (Python)](.github/workflows/validate-spec-py.yml) 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. + +### [Validate Spec (Ruby)](.github/workflows/validate-spec-ruby.yml) + +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. diff --git a/tools/src/validate-spec-ruby/validate.rb b/tools/src/validate-spec-ruby/validate.rb index ea3e4332b..842359e3b 100644 --- a/tools/src/validate-spec-ruby/validate.rb +++ b/tools/src/validate-spec-ruby/validate.rb @@ -11,7 +11,7 @@ total_errors = 0 schemer.validate.each do |error| - puts "#{error['data_pointer']}: #{error['error']}" # if total_errors < 100 + puts "#{error['data_pointer']}: #{error['error']}" if total_errors < 10 total_errors += 1 end