---
title: ValidationCategory
framework: lightweightcoderequirements
role: symbol
role_heading: Structure
path: lightweightcoderequirements/validationcategory
---

# ValidationCategory

A constraint that tests whether a code file or running process is signed in a way that conforms to the specified validation category.

## Declaration

```swift
struct ValidationCategory
```

## Overview

Overview Validation categories are an indication of the type of signature on the file and how it is allowed to run.

## Topics

### Structures

- [ValidationCategory.Value](lightweightcoderequirements/validationcategory/value.md)

### Initializers

- [init(_:)](lightweightcoderequirements/validationcategory/init(_:).md)
- [init(from:)](lightweightcoderequirements/validationcategory/init(from:).md)

### Instance Methods

- [encode(to:)](lightweightcoderequirements/validationcategory/encode(to:).md)

### Type Aliases

- [ValidationCategory.DataType](lightweightcoderequirements/validationcategory/datatype.md)
- [ValidationCategory.OutType](lightweightcoderequirements/validationcategory/outtype.md)

### Type Methods

- [in(_:)](lightweightcoderequirements/validationcategory/in(_:)-1skt4.md)
- [in(_:)](lightweightcoderequirements/validationcategory/in(_:)-94p2z.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [LaunchConstraint](lightweightcoderequirements/launchconstraint.md)
- [OnDiskConstraint](lightweightcoderequirements/ondiskconstraint.md)
- [ProcessConstraint](lightweightcoderequirements/processconstraint.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Testing properties of executable code

- [CodeDirectoryHash](lightweightcoderequirements/codedirectoryhash.md)
- [EntitlementsQuery](lightweightcoderequirements/entitlementsquery.md)
- [InfoPlistHash](lightweightcoderequirements/infoplisthash.md)
- [IsInitProcess](lightweightcoderequirements/isinitprocess.md)
- [IsMainBinary](lightweightcoderequirements/ismainbinary.md)
- [IsSIPProtected](lightweightcoderequirements/issipprotected.md)
- [PlatformType](lightweightcoderequirements/platformtype.md)
- [SigningIdentifier](lightweightcoderequirements/signingidentifier.md)
- [TeamIdentifier](lightweightcoderequirements/teamidentifier.md)
