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

Unable to generate code #91

Open
dcr007 opened this issue Oct 18, 2021 · 1 comment
Open

Unable to generate code #91

dcr007 opened this issue Oct 18, 2021 · 1 comment

Comments

@dcr007
Copy link

dcr007 commented Oct 18, 2021

Description

  • Type: Bug

Bug

Unable to run the following .puclass file . i get the below error

puml2code -i poc_uml.puclass -l java
Error: line: 18 column: 67: SyntaxError: Expected "|>", [ \t], ["], [*], [A-Za-z_], or [o] but ">" found.
    at PlantUmlToCode.generate (/usr/local/lib/node_modules/puml2code/src/index.js:86:15)
    at async execute (/usr/local/lib/node_modules/puml2code/src/cli.js:53:20)

poc_uml.puclass :


@startuml

class com.ondemand.myapp.splunkconsumer.api.controllers.UmlController {
    - UmlService splunkService
    + ResponseEntity<String> postSplunkRawData(String)
    + ResponseEntity<RawData> postSplunkRawData(RawData)
    + ResponseEntity<DcLogins> postSplunkData(DcLogins)
    + ResponseEntity<List<DcLogins>> findRecordBySid(String)
}
class com.ondemand.myapp.splunkconsumer.api.services.UmlService {
    - UmlRepository splunkRepository
    - DcLogins payload
    - SplunkDataRepository splunkDataRepository
    + DcLogins saveReport(DcLogins)
    + RawData saveData(RawData)
    + List<DcLogins> findBySid(String)
}
com.ondemand.myapp.splunkconsumer.api.controllers.UmlController ..> com.ondemand.myapp.splunkconsumer.api.services.UmlService
@enduml


Question

How to fix it ?

@zbynek
Copy link

zbynek commented Jul 7, 2023

Looks like generics are not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants