swagger-core
swagger-core copied to clipboard
Why example in ObjectSchema is a String ???! it's a bug
@Override public ObjectSchema example(Object example) { if (example != null) { super.setExample(example.toString()); } else { super.setExample(example); } return this; }
you see, this method in ObjectSchema use example.toString(), so when serialized in openapi. it's a string, not a object! I think this is a bug!!