Skip to content

Commit ec091d7

Browse files
committed
Pass linting
1 parent a9ed15d commit ec091d7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/openapi_first/schema/validation_error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Schema
66
ValidationError = Data.define(:value, :data_pointer, :schema_pointer, :type, :details, :schema) do
77
# This returns an error message for this specific error.
88
# This it copied from json_schemer here to be easier to customize when passing custom data_pointers.
9-
def message
9+
def message # rubocop:disable Metrics/CyclomaticComplexity
1010
location = data_pointer.empty? ? 'root' : "`#{data_pointer}`"
1111

1212
case type

spec/schema/validation_result_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
RSpec.describe OpenapiFirst::Schema::ValidationResult do
24
def schema(hash)
35
JSONSchemer.schema(hash)

0 commit comments

Comments
 (0)