Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many properties created as dynamic, whilst definition exists in Swagger #758

Open
HEBOS opened this issue Jun 25, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working Triage needed

Comments

@HEBOS
Copy link

HEBOS commented Jun 25, 2024

Describe the bug
Many properties created as dynamic, despite type being described in swagger.json
An example is BlobFile model, with a few properties created as dynamic:
dynamic_issue

To Reproduce
Generate clients using supplied swagger definition, and try creating create BlobFile object using:

final blobFile = BlobFile(
          documentType: DocumentType.cashdocument,
          date: DateTime.now(),
          description: null,
          name: 'test',
          blobFormatType: BlobFormatType.pdf,
          blobFileType: BlobFileType.document,
          blobFileId: 'test',
          lastChange: (
            userId: 'test',
            date: DateTime.now(),
          ),
          owner: UserOwned(
            userId: 'test',
            name: 'test',
          ).toJson(),
          team: TeamOwned(
            teamId: 'test',
            name: 'test',
          ),
        );

Expected behavior
To get properties having strong types.

Swagger specification link
swagger.json

Library version used:
2.15.2

Additional context
n/a

@HEBOS HEBOS added bug Something isn't working Triage needed labels Jun 25, 2024
@zuhaiRaed
Copy link

any update on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Triage needed
Projects
None yet
Development

No branches or pull requests

4 participants