Skip to content

[Feature Request]: Provide public default initializers for public structs #216

@wmalloc

Description

@wmalloc

Summary

Public structs do not have public initializers

Pain points

I wanted to use the struct ComAtprotoLexicon.Server.CreateSessionRequestBody but I am unable to instantiate it.

'ComAtprotoLexicon.Server.CreateSessionRequestBody' initializer is inaccessible due to 'internal' protection level

would it be possible to update the models to have public initializers?

Considered Alternatives

None!

Is this a breaking change?

Yes

Library Examples

self.payload = .init(identifier: username, password: password, authFactorToken: authFactorToken)

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions