While using Swagger I faced a problem with Swift 5.
In my framework I tried to write custom init for ObjectSchema, but the compiler was strongly against it: "let property ‘anyProperty’ may not be initialized directly."
And there was no ObjectSchema default public init because memberwise init is internal.
Of course, it is a bug because with Swift 4 described scheme compiles correctly.
But still it is important to provide public default init for public structs.
While using Swagger I faced a problem with Swift 5. In my framework I tried to write custom init for ObjectSchema, but the compiler was strongly against it: "let property ‘anyProperty’ may not be initialized directly." And there was no ObjectSchema default public init because memberwise init is internal. Of course, it is a bug because with Swift 4 described scheme compiles correctly. But still it is important to provide public default init for public structs.