{ "openapi": "3.0.0", "info": { "title": "test", "version": "v1" }, "paths": {}, "components": { "schemas": { "BaseType": { "type": "object", "required": [ "b" ], "properties": { "b": { "type": "string" } } }, "Keep": { "type": "object", "required": [ "excludedStruct", "excludedInt" ], "properties": { "excludedStruct": { "description": "This comment is included", "type": "object", "required": [ "A" ], "properties": { "A": { "type": "integer" } } }, "excludedInt": { "type": "integer" } } }, "Type": { "type": "object", "properties": { "a": { "type": "string" } }, "allOf": [ { "$ref": "#/components/schemas/BaseType" } ] } } } }