Skip to content

Full init constructor for provided types #91

@yodiz

Description

@yodiz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions