Validate a domain-profile.json file against the AI Domain Data Standard v0.1.1 (backward-compatible with v0.1) using the aidd CLI. Fails the workflow if the file is missing or invalid.
The action validates against the latest schema which includes:
- Required fields:
spec,name,description,website,contact - Optional fields:
logo,entity_type(schema.org values),jsonld(schema.org JSON-LD blocks)
name: Validate AI Domain Data
on:
push:
branches: [main]
pull_request:
jobs:
validate-ai-domain-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate domain-profile.json
uses: ai-domain-data/ai-domain-data-validate-action@v0.1.1
with:
path: domain-profile.jsonThe action installs the latest @ai-domain-data/cli package at runtime and executes:
npx @ai-domain-data/cli aidd validate --path=<path>
| Name | Description | Default |
|---|---|---|
path |
Path to the domain-profile.json file to validate. Relative to the repository root. |
domain-profile.json |
No outputs. The action exits non-zero if validation fails. CLI errors are printed in the workflow logs.
The action validates:
- All required fields are present and non-empty
- URLs are properly formatted
entity_type(if provided) is a valid schema.org@typevalue (Organization, Person, Blog, NGO, Community, Project, CreativeWork, SoftwareApplication, Thing)jsonld(if provided) includes required@context: "https://schema.org"and@typefields- No additional properties beyond those defined in the schema
- Node.js 20+ runner (the action uses the Node 20 runtime).
- Internet access to install
@ai-domain-data/clifrom npm.
MIT © Dylan Larson