lib/schemacop/v3/node.rb in schemacop-3.0.3 vs lib/schemacop/v3/node.rb in schemacop-3.0.4
- old
+ new
@@ -168,10 +168,10 @@
json[attr.to_s.camelize(:lower).to_sym] = options[attr]
end
end
json[:title] = @title if @title
- json[:examples] = @examples if @examples
+ json[Schemacop.context.examples_keyword] = @examples if @examples
json[:description] = @description if @description
json[:default] = @default if @default
json[:enum] = @enum.to_a if @enum
return json.as_json