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

[AsyncApi] Print a class as json #262

Closed
alfredo9f opened this issue Jul 11, 2023 · 1 comment · Fixed by #263
Closed

[AsyncApi] Print a class as json #262

alfredo9f opened this issue Jul 11, 2023 · 1 comment · Fixed by #263
Assignees
Labels
enhancement New feature or request

Comments

@alfredo9f
Copy link
Contributor

What happens?

When I print a generated object in a log the toString method write a string with \n and blank spaces. This is not easy to read in the log system that shows lines per trace log.

What do would I like?

I would like to have a method that return me a json string in a line, without \n, \t, blank spaces etc.

@alfredo9f alfredo9f added the enhancement New feature or request label Jul 11, 2023
@AdrianLagartera AdrianLagartera self-assigned this Jul 11, 2023
AdrianLagartera added a commit that referenced this issue Jul 12, 2023
AdrianLagartera added a commit that referenced this issue Jul 12, 2023
AdrianLagartera added a commit that referenced this issue Jul 12, 2023
@AdrianLagartera AdrianLagartera linked a pull request Jul 12, 2023 that will close this issue
AdrianLagartera added a commit that referenced this issue Jul 14, 2023
@alfredo9f
Copy link
Contributor Author

The string is not a valid json structure. For example, I have this string from an object:

AccountEvent{ data:Data{ customerProductHolding:CustomerProductHolding{ productFullfillmentServiceDomainName:BrokeredProduct, id:d54dccd7-a44b-44ab-aa67-5e0faffacf3d, account:Account{ id:123456791, accountType:Personal, accountSubType:CurrentAccount, description:Description of the account, identification:80200110203349, schemeName:UK.OBIE.SortCodeAccountNumber, openingDate:null, status:Enabled, switchStatus:UK.CASS.SwitchCompleted, currency:GBP, product:Product{ id:8, productName:HSBC ADVANCE,}, servicer:Servicer{ identification:DAC.SERVICER.ID.654456, schemeName:UK.OBIE.BICFI,}, relatedParties:[Party{ partyId:psu-4889, partyType:Sole, name:Mr Bantu, fullLegalName:Mr Bantu Sinfield,}],},},},}

@alfredo9f alfredo9f reopened this Jul 26, 2023
jemacineiras added a commit that referenced this issue Jul 27, 2023
jemacineiras added a commit that referenced this issue Jul 27, 2023
jemacineiras added a commit that referenced this issue Jul 28, 2023
* #262 Fix to String generation.

* #262 Fix to String generation.

* #265 Fix Wrong folder generation
jemacineiras added a commit that referenced this issue Aug 8, 2023
* #262 Fix to String generation.

* #262 Fix to String generation.

* #265 Fix Wrong folder generation

* #251 Fix Parameter without description

* #251 Fix Parameter without description

* #251 Fix Parameter without description

* #251 Fix Parameter without description

* #251 Fix Parameter without description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants