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

Java generator does not include import for dictionary models #1892

Closed
jonaslagoni opened this issue Mar 14, 2024 · 0 comments
Closed

Java generator does not include import for dictionary models #1892

jonaslagoni opened this issue Mar 14, 2024 · 0 comments
Labels
area/typescript Specify what technical area given issue relates to. Its goal is to ease filtering good first issues. bug Something isn't working good first issue Good for newcomers Java generator Anything related to the Java generator

Comments

@jonaslagoni
Copy link
Member

jonaslagoni commented Mar 14, 2024

return `Map<${constrainedModel.key.type}, ${constrainedModel.value.type}>`;
needs to import https://docs.oracle.com/javase/8/docs/api/java/util/Map.html

This can be done through the dependencyManager argument as seen here:

dependencyManager.addDependency('from typing import Any');

First raised in #1885

@jonaslagoni jonaslagoni added bug Something isn't working good first issue Good for newcomers Java generator Anything related to the Java generator area/typescript Specify what technical area given issue relates to. Its goal is to ease filtering good first issues. labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/typescript Specify what technical area given issue relates to. Its goal is to ease filtering good first issues. bug Something isn't working good first issue Good for newcomers Java generator Anything related to the Java generator
Projects
None yet
Development

No branches or pull requests

1 participant