> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# publisherIssueToCodeV2()

- Package: [@gooddata/sdk-code-convertors](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-convertors/src/to/publisherIssueToCodeV2.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Names the place in the code that a v2 Publisher validation issue is about. The validator reports on the converted entity, whose keys the code-to-entity converters rename; pass the entity it checked.

**Signature:**

```typescript
export declare function publisherIssueToCodeV2(issue: IPublisherValidationIssueV2, entity: unknown): IPublisherValidationIssueV2;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| issue | [IPublisherValidationIssueV2](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ipublishervalidationissuev2/index.md) |  |
| entity | unknown |  |

**Returns:**

[IPublisherValidationIssueV2](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ipublishervalidationissuev2/index.md)

## Remarks

Filters are a list in the entity and a map keyed by filter id in the code, and the code has no attribute filter configs of its own, so an issue inside either is reported on the filter's key under `filters`. A message quoting a renamed key, such as an unknown key, quotes it as the code writes it.
