# CustomMetadataSchemaConfigurationProperty

Configuration that defines a typed metadata schema for a registry.

A default schema and per-record-type schema overrides are both optional. Schema evolution is additive only: you can add fields and enum values, but you cannot remove fields, change types, or remove enum values.

- Source: Generated code
- Type last changed: v2.275.0 · 26 Oct 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_agentregistry as agentregistry } from 'aws-cdk-lib';
const customMetadataSchemaConfigurationProperty: agentregistry.CfnRegistry.CustomMetadataSchemaConfigurationProperty = {
  defaultSchema: 'defaultSchema',
  recordTypeSchemaOverrides: [{
    recordType: 'recordType',
    schema: 'schema',
  }],
};
```

## Properties

- `defaultSchema`: string — The default JSON Schema that applies to record types without a specific override.

  Supported property types are string, string with an enum constraint, string with a uri format, and boolean.

- `recordTypeSchemaOverrides`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRegistry.RecordTypeSchemaOverrideProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_agentregistry.CfnRegistry.RecordTypeSchemaOverrideProperty.html)[] — A list of per-record-type schema overrides.

  When a record's type matches an override, that override's schema is used instead of the default schema for validation.
