# `package.personal_unlabelled`

A field a provider package sends carries no personal-data label: a category, a standard type that is personal data, or `personal: none`.

Area 15, [Personal data](/docs/personal-data.md); not declinable; the next step is usually the agent's.

## Why Jadpo refuses it

A provider package says, for every field it sends to its provider, whether
the field can hold personal data, so an app sees where its people's data
goes before it calls the package. Each field of a type an operation sends,
however deep, carries one of three labels: a category, `personal:
PersonalData.contact`, when it holds personal data or may, as free text
holds whatever an app puts in it; a standard type that is personal data
whatever holds it, such as `Email` or `PersonName`, which needs no label; or
`personal: none` when it never holds any, such as an amount or the
provider's own id for a product. A field holding an object the package
declares needs no label of its own: that object's fields carry theirs.

A field with no label says nothing, so nothing could refuse personal data
sent into a field the provider treats as plain. The publishing bar refuses
it, and so does `jadpo check` in an app's own integration, so the package
can be published unchanged. Only you can tell what the provider does with
a field, so it can't be declined: label it. A package you installed is its
publisher's to label, and one published before labels keeps working.

## What it looks like

`reference` says nothing about whether it can hold personal data:





`shared/providers/tidepay/v1/types/charge_request.jadpo`:

```jadpo
/// A charge to make.
public type ChargeRequest = Object {
    amount: Money {
        personal: none
    }
    reference: Text
    receipt_email: Email
}
```

```text
error: `ChargeRequest.reference` has no personal-data label
 --> shared/providers/tidepay/v1/types/charge_request.jadpo:6:5
  |
6 |     reference: Text
  |     ^^^^^^^^^ sent by `charges.create` with no label
  reason: Every field a provider package sends says whether it can hold personal data, so an app sees where its people's data goes before it calls the package. `reference` is sent by `charges.create` to https://api.tidepay.example, and says none of the three: a category, `personal: PersonalData.<category>`, when it holds personal data or may, as free text holds whatever an app puts in it; a standard type that is personal data, such as `Email`, which needs no label; or `personal: none` when it never does.
  next: Check what the provider does with `reference`, then label it `personal: PersonalData.<category>`, or `personal: none` if it can never hold personal data (agent)
  rule: package.personal_unlabelled
  help: https://jadpo.dev/docs/errors/package.personal_unlabelled

check failed: 1 error, 5 files
```

`(agent)` at the end of the `next:` line means your coding agent can make
the fix itself.

## How to fix it

**If it can hold personal data**, label it with the category it may hold.
A reference the app writes freely may hold a customer's name or address:





```jadpo
/// A charge to make.
public type ChargeRequest = Object {
    amount: Money {
        personal: none
    }
    reference: Text {
        personal: PersonalData.identifying
    }
    receipt_email: Email
}
```

The package's facts now list `reference` as personal data sent to Tidepay,
and an app's report counts whatever it sends there.

**If it never can**, such as an order number the provider gives, label it
`personal: none`, and an app sending personal data there is refused
([`data.personal_into_unmarked`](/docs/errors/data.personal_into_unmarked.md)):

```jadpo
    reference: Text {
        personal: none
    }
```






The package's facts list `reference` as never holding personal data, beside
what it sends that does.

## Related

- [What a package sends](/docs/marking-personal-fields.md#what-a-package-sends)
- [`data.personal_into_unmarked`](/docs/errors/data.personal_into_unmarked.md)
- [`package.standard_candidate`](/docs/errors/package.standard_candidate.md)
