Skip to content

feat: change the collectionType for arrays for C# models - #481

Merged
asyncapi-bot merged 4 commits into
asyncapi:masterfrom
prayutsu:change-collection-type-for-arrays-in-csharp
Mar 26, 2023
Merged

asyncapi-bot merged 4 commits into
asyncapi:masterfrom
prayutsu:change-collection-type-for-arrays-in-csharp

Conversation

@prayutsu

Copy link
Copy Markdown
Contributor

Description

  • Add csharpArrayType flag to pass collection type for C# models.
  • Added test case for the same.
    Related issue(s)

Fixes #469

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@prayutsu prayutsu changed the title feat: Change the collectionType for Arrays for C# models feat: change the collectionType for arrays for C# models Mar 21, 2023
@prayutsu

Copy link
Copy Markdown
Contributor Author

@jonaslagoni Please take a look

jonaslagoni
jonaslagoni previously approved these changes Mar 21, 2023

@jonaslagoni jonaslagoni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Nice @prayutsu 🚀

@prayutsu

Copy link
Copy Markdown
Contributor Author

@Souvikns @magicmatatjahu @derberg @boyney123 PTAL and also approve the workflow

@prayutsu

Copy link
Copy Markdown
Contributor Author

@jonaslagoni Is there any linter configured for the repository?

@derberg derberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

and yes, we use eslint here,
and it always runs on a PR the same workflow that runs tests

your tests fail but definitely not because of your changes, as many other PRs fail for the same reason I haven't seen before

Error: src/commands/optimize.ts(135,58): error TS7006: Parameter 'e' implicitly has an 'any' type.

I'll have a look

@prayutsu

prayutsu commented Mar 23, 2023 •

Copy link
Copy Markdown
Contributor Author

@derberg This is the same error that I am getting on my local when I use node 14.
Screenshot 2023-03-22 at 11 30 24 AM

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@derberg

derberg commented Mar 26, 2023

Copy link
Copy Markdown
Member

@prayutsu #484 should fix most of issues with tests, including issues you had in your local env.

@derberg

derberg commented Mar 26, 2023

Copy link
Copy Markdown
Member

/rtm

@asyncapi-bot
asyncapi-bot merged commit 8414798 into asyncapi:master Mar 26, 2023
@asyncapi-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.33.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change the collection type for arrays for C# models

4 participants