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

Incorrect schema for JVM verb with map parameter #2651

Closed
tomdaffurn opened this issue Sep 11, 2024 · 0 comments · Fixed by #2658
Closed

Incorrect schema for JVM verb with map parameter #2651

tomdaffurn opened this issue Sep 11, 2024 · 0 comments · Fixed by #2658
Labels
bug Something isn't working jvm

Comments

@tomdaffurn
Copy link
Contributor

tomdaffurn commented Sep 11, 2024

When a Kotlin or Java verb has a map in its signature, the schema created from it is incorrect.

This verb:

    @Export
    @Verb
    public @NotNull Map<K, V> theVerb(@NotNull Map<K, V> val) {
        return val;
    }

Generates this schema:

  export verb theVerb({K: K}) {K: K}

When it should be:

  export verb theVerb({K: V}) {K: V}
@tomdaffurn tomdaffurn added bug Something isn't working jvm labels Sep 11, 2024
@github-actions github-actions bot added the triage Issue needs triaging label Sep 11, 2024
This was referenced Sep 11, 2024
github-merge-queue bot pushed a commit that referenced this issue Sep 12, 2024
@safeer safeer removed the triage Issue needs triaging label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jvm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants