Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Improve handling of JsonFieldType.VARIES #16

Open
mduesterhoeft opened this issue Jan 10, 2018 · 0 comments
Open

Improve handling of JsonFieldType.VARIES #16

mduesterhoeft opened this issue Jan 10, 2018 · 0 comments

Comments

@mduesterhoeft
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant