Sealed classes/interfaces in Java 17+ allow for one or more permitted subclasses to be specified on the sealed class. This seems to be a good match for JSON schemas anyOf subschema array. We should investigate if this is a good feature for inclusion in MP OpenAPI.