restdocs-raml icon indicating copy to clipboard operation
restdocs-raml copied to clipboard

Improve handling of JsonFieldType.VARIES

Open mduesterhoeft opened this issue 6 years ago • 0 comments

If spring-rest-docs finds a field in a list with multiple types (e.g. once null, once string) it sets the type to JsonFieldType.VARIES - Currently we use a NullSchema in such a case - which is not ideal. It would be better to collect all the types and write a json schema with multiple types - see https://github.com/everit-org/json-schema/blob/master/core/src/main/java/org/everit/json/schema/CombinedSchema.java

mduesterhoeft avatar Jan 10 '18 14:01 mduesterhoeft