# Auto-Fix an Apify Actor Input JSON Payload

**Use case:** 

Catch and auto-correct enum case, float-for-integer, and typo'd fields in an Apify actor input. Get a ready-to-run patched payload.

## Input

```json
{
  "targetActorId": "ryanclinton/fred-economic-data",
  "testInput": {
    "mode": "SEARCH",
    "frequency": "D",
    "searchText": "unemployment"
  },
  "testInputs": [],
  "includeSchemaQualityAudit": true,
  "includeAutoFixSuggestions": true,
  "includePatchedInputPreview": true,
  "outputProfile": "standard",
  "policyPreset": "custom",
  "baselineScope": "targetActor",
  "includeDriftTimeline": false,
  "includeReliabilityProfile": false,
  "includeReplayPackage": true,
  "proposedSchema": {},
  "saveGoldenSuite": false,
  "runGoldenSuite": false,
  "inferSchemaWhenMissing": true,
  "emitArtifacts": false,
  "artifactFormats": [],
  "webhookMode": "none"
}
```

## Output

```json
{
  "actorName": {
    "label": "Actor Name",
    "format": "string"
  },
  "decision": {
    "label": "Decision",
    "format": "string"
  },
  "safeAutoFixCount": {
    "label": "Safe Autofix Count",
    "format": "integer"
  },
  "unsafeSuggestionCount": {
    "label": "Unsafe Suggestion Count",
    "format": "integer"
  },
  "recommendedFixes": {
    "label": "Recommended Fixes"
  },
  "patchedInputPreview": {
    "label": "Patched Input Preview",
    "format": "object"
  },
  "validatedAt": {
    "label": "Validated At",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Actor Input Tester — Validate Actor Input JSON Before Running](https://apify.com/ryanclinton/actor-input-tester) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ryanclinton/actor-input-tester) to learn more, explore other use cases, and run it yourself.