adk.config.json

adk.config.json defines FileMaker layouts, validation schema formats, client naming options, and output paths for a Web Viewer application. It resides in the app directory under webviewer-apps/<app>/.

Configuration structure

The configuration file defines two top-level properties:

Key Type Description
config Object or array of objects Configuration object (or array of objects) specifying layout sets and generation settings.
postGenerateCommand string (optional) Shell command executed after code generation completes (for example: "pnpm biome format --write .").
Copy
{
  "config": {
    "type": "fmdapi",
    "path": "./src/config/schemas/filemaker",
    "clearOldFiles": true,
    "clientSuffix": "Layout",
    "validator": "zod/v4",
    "webviewerScriptName": "ADK_execute_data_api",
    "layouts": []
  }
}

This starter template is provisioned automatically during initial app scaffolding.

Config object fields

Field Type Default Description
type "fmdapi" "fmdapi" Identifies FileMaker Data API configuration. Added automatically if omitted.
layouts array [] Layouts targeted for schema and client generation. See Layout options below.
path string "schema" Output directory for generated files, relative to the app directory.
clearOldFiles boolean false When true, clears client/ and generated/ subdirectories prior to generation (app templates default to true).
validator "zod" | "zod/v4" | "zod/v3" | false "zod/v4" Validation schema generator. Set to false to generate TypeScript types without runtime validation.
clientSuffix string "Layout" Suffix appended to schemaName for client exports (for example, Contacts exports as ContactsLayout).
generateClient boolean true When false, generates schemas and types only without creating client classes.
webviewerScriptName string "ADK_execute_data_api" FileMaker script called by WebViewerAdapter.
fileName string (optional) — Connected FileMaker file name. When omitted, Typegen infers the open file or updates the config if only one file is open.
configName string (optional) — Optional descriptive label when using array-based configuration sets.

Layout options

Each object in the layouts array defines one FileMaker layout to generate schemas for:

Field Type Default Description
layoutName string (required) — Exact layout name in the FileMaker file.
schemaName string (required) — TypeScript identifier used for generated schemas, types, and client exports.
valueLists "strict" | "allowEmpty" | "ignore" "ignore" Typing strategy for fields with value lists. "ignore" types as string. "strict" types as a union of values. "allowEmpty" allows unions plus empty strings ("").
generateClient boolean Inherited Overrides top-level generateClient for this layout.
strictNumbers boolean false When true, types numeric fields as number | null instead of string | number.
Copy
{
  "config": {
    "layouts": [
      { "layoutName": "Contacts", "schemaName": "Contacts" },
      { "layoutName": "Orders", "schemaName": "Orders", "valueLists": "strict" }
    ]
  }
}

When valueLists is set to "ignore", value list values are still exported in generated schema files for independent use.

Multiple configuration blocks

The config property accepts an array of configuration objects to support different output paths, validators, or layout groupings:

Copy
{
  "config": [
    { "type": "fmdapi", "path": "./src/config/schemas/filemaker", "layouts": [/* ... */] },
    { "type": "fmdapi", "path": "./src/config/schemas/reports", "validator": false, "layouts": [/* ... */] }
  ]
}