Commit 26674f82 authored by Stan Hu's avatar Stan Hu

Promote json-schema to production

This was introduced in
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/32991 and used in
app/validators/json_schema_validator.rb, so we need it as a production
gem instead of a test gem.

This caused
https://gitlab.com/gitlab-com/gl-infra/production/-/issues/2207
parent a34ae2ff
...@@ -402,7 +402,6 @@ group :test do ...@@ -402,7 +402,6 @@ group :test do
gem 'shoulda-matchers', '~> 4.0.1', require: false gem 'shoulda-matchers', '~> 4.0.1', require: false
gem 'email_spec', '~> 2.2.0' gem 'email_spec', '~> 2.2.0'
gem 'json-schema', '~> 2.8.0'
gem 'webmock', '~> 3.5.1' gem 'webmock', '~> 3.5.1'
gem 'rails-controller-testing' gem 'rails-controller-testing'
gem 'concurrent-ruby', '~> 1.1' gem 'concurrent-ruby', '~> 1.1'
...@@ -497,3 +496,4 @@ gem 'valid_email', '~> 0.1' ...@@ -497,3 +496,4 @@ gem 'valid_email', '~> 0.1'
# JSON # JSON
gem 'json', '~> 2.3.0' gem 'json', '~> 2.3.0'
gem 'json-schema', '~> 2.8.0'
# frozen_string_literal: true # frozen_string_literal: true
#
require "json-schema"
# JsonSchemaValidator # JsonSchemaValidator
# #
# Custom validator for json schema. # Custom validator for json schema.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment