Description
As it is now Swaggerprovider generates mutable classes for objects. Would it be possible to generate immutable F# records?
Options types for non required fields would also be nice :)
If F# Records are not possible, is it possible to have a default constructor on the generated type that sets all properties of the object? This would minimize risk of not setting an property by accident. And also if the underlying swagger-specification change, and a property is added on the object: You would get a compile-error that you need to set the property.
Description
As it is now Swaggerprovider generates mutable classes for objects. Would it be possible to generate immutable F# records?
Options types for non required fields would also be nice :)
If F# Records are not possible, is it possible to have a default constructor on the generated type that sets all properties of the object? This would minimize risk of not setting an property by accident. And also if the underlying swagger-specification change, and a property is added on the object: You would get a compile-error that you need to set the property.