swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

Why example in ObjectSchema is a String ???! it's a bug

Open felton321 opened this issue 3 years ago • 0 comments

@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!!

felton321 avatar Feb 18 '22 14:02 felton321