git clone https://github.com/validatedpatterns/pattern-ui-catalog.git
cd pattern-ui-catalog
make generate-catalog # requires gh, yq, jq, and GitHub authentication
make schema-validate # requires check-jsonschema (pip install check-jsonschema)Validation and troubleshooting
Validate pattern-metadata.yaml before you publish a pattern so the UI catalog and documentation sync workflows accept your changes.
Use the schema checks, inclusion rules, and alignment checks in this topic to confirm that required fields and URLs are correct.
When a pattern is missing from the catalog or a sync workflow fails, use the troubleshooting steps to identify and fix the cause.
Catalog schema validation
The pattern-ui-catalog repository validates normalized catalog files:
The make schema-validate target checks the following files:
catalog/catalog.yamlagainstcatalog.schema.jsonEach
catalog/*/pattern.yamlagainstpattern.schema.json
The pattern-ui-catalog CI pipeline also runs yamllint on generated catalog files.
Documentation sync validation
The docs metadata workflow (.github/workflows/metadata-docs.yml) validates the following conditions:
repo_urlinpattern-metadata.yamlmatcheshttps://github.com/<org>/<repo>;for the repository running the workflowThe YAML file parses successfully (by using
yqandflatten_yaml.rb)
If validation fails, the workflow exits with an error and no pull request is opened. For workflow setup, see Enabling automatic sync to the documentation repository.
Catalog inclusion rules
A pattern repository is included in the UI catalog only when:
The repository is public and tagged with
ui-catalog-enabledpattern-metadata.yamlexists on the default branchThe file parses and normalizes without error
Repositories missing metadata or with invalid YAML are skipped silently during catalog generation.
Alignment checks for contributors
Keep these values consistent across systems:
namematches the Git repository name andglobal.patterninvalues-global.yamlrepo_urlmatches the actual GitHub repository URLtier,docs_url, andci_urlalign with Hugo frontmatter and CI badge JSON (see Testing artifacts)requirementshub sizing reflects configurations you have actually tested
Pattern missing from the UI catalog
Verify the following items:
The GitHub repository has the
ui-catalog-enabledtopic.pattern-metadata.yamlexists on the default branch.The YAML parses correctly (run
yq '.' pattern-metadata.yamllocally).The catalog has been regenerated and the catalog image redeployed after your change.
Metadata sync workflow fails on repo URL
The sync workflow compares repo_url with the GitHub URL of the repository running the workflow.
Verify that repo_url uses the form https://github.com/<org>/<repo>;.
Schema validation fails in pattern-ui-catalog
Common causes include the following issues:
Missing required field after normalization (for example,
extra_featuresorrequirements.hub)Invalid
tiervalue (must bemaintained,tested, orsandbox)namecontains uppercase letters or underscoresownersis empty after normalizationUndeclared extra fields at the top level
Run make generate-catalog and make schema-validate locally to reproduce errors before publishing.
For required fields, see Required fields (catalog format).
Empty requirements section
If requirements is empty, the catalog schema validation fails and the documentation cluster sizing template renders incomplete tables.
Define at least requirements.hub with compute and controlPlane entries for one cloud provider.
For sizing field structure, see Cluster sizing fields.
