commercetools / commercetools/rmf-codegen

Non-compiling code is generated for go-clients for deep object query-parameters

Open
#333 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
16
Forks
7
Avg merge
1d 3h
Merged PRs (30d)
3

Description

Recently there was a deep object query-parameter added to the commercetools-api-reference.

See **filter[attributes]** in file **attribute-filtering.raml** -> https://github.com/commercetools/commercetools-api-reference/blob/main/api-specs/api/traits/attribute-filtering.raml

This feature cannot be handled by rmf-codegen for go clients. It generates non-compiling code. **Filter[attributes]** is not a valid function name.

`func (rb *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodGet) Filter[attributes](v []string) *ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodGet {
if (rb.params == nil) { rb.params = &ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestMethodGetInput{} }
rb.params.Filter[attributes] = v
return rb
}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.