influxdata / influxdata/openapi

ScriptInvocationParams incorrect codegen in Go

Open
#337 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
18
Forks
9
PR merge metrics
No merged PRs in 30d

Description

PR #292 broke the codegen for Go, where `additionalProperties: true` generates a `map[string]map[string]interface{}`, instead of the expected `map[string]interface{}`. Setting `additionalProperties` to false fixes this, but it will break other languages as seen in #292.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing PR #292 and the codegen handling for ScriptInvocationParams, then compare generated output for additionalProperties set to true and false across languages. Done means Go generates map[string]interface{} for the true case without regressing the other languages affected by #292.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, openapi
Domain
backend-api-design, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.