Skip to content

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

@gasttor

Description

@gasttor

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 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions