# com.nahdig.software

> Software identity for a CPE product, linked to a release.software project and PURL/CPE aliases.

- Kind: record
- Record key: any
- Authority: nahdig.com
- Lexicon: 1
- Published by [nahdig.com](https://lexicon.garden/identity/did:plc:zmuf6p7ahfh4ly4wp4bx57hx), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.software)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.software/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:zmuf6p7ahfh4ly4wp4bx57hx/com.nahdig.software/analytics)

## Record (`com.nahdig.software`)

Type: record · key any

### Properties

- `cpes` (array)
  - `items` (string)
- `part` (string, required): CPE part: application, operating system, hardware.
  - Constraints: knownValues: a | o | h
- `product` (string, required)
  - Constraints: minLength: 1
- `project` (ref, required): Strong reference to the software.release.project record.
  - Reference: `com.atproto.repo.strongRef#main`
- `purls` (array)
  - `items` (string)
- `vendor` (string, required)
  - Constraints: minLength: 1

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "cpes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "part": {
            "description": "CPE part: application, operating system, hardware.",
            "knownValues": [
              "a",
              "o",
              "h"
            ],
            "type": "string"
          },
          "product": {
            "minLength": 1,
            "type": "string"
          },
          "project": {
            "description": "Strong reference to the software.release.project record.",
            "ref": "com.atproto.repo.strongRef#main",
            "type": "ref"
          },
          "purls": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendor": {
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "project",
          "vendor",
          "product",
          "part"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Software identity for a CPE product, linked to a release.software project and PURL/CPE aliases.",
  "id": "com.nahdig.software",
  "lexicon": 1
}
```
