@Andrew O'Hara quite frankly, the swagger editor is not the bastion of sanity.... 🙂 . We tend to use the standard swagger UI instead which doesn't have the same issue. (eg. the one from
https://www.http4k.org/openapi3/) . You can configure your own Jackson instance to not serialise the nulls instead, and then use this method to override the instance used:
fun OpenApi3(apiInfo: ApiInfo, json: Jackson = Jackson, extensions: List<OpenApiExtension> = emptyList()) = OpenApi3(apiInfo, json, extensions, ApiRenderer.Auto(json, AutoJsonToJsonSchema(json)))