test/unit/schemacop/v3/node_test.rb in schemacop-3.0.4 vs test/unit/schemacop/v3/node_test.rb in schemacop-3.0.5

- old
+ new

@@ -61,9 +61,23 @@ 'foo' ] }) end + def test_swagger_example + schema :string, examples: ['Foo', 'Foo bar'] + + assert_json( + type: :string, + examples: ['Foo', 'Foo bar'] + ) + + assert_swagger_json( + type: :string, + example: ['Foo', 'Foo bar'] + ) + end + def test_cast_in_root schema :integer, cast_str: true, required: true assert_json( oneOf: [