Skip to content

Configuration

API Contracts supports configuration through MSBuild properties and assembly-level attributes.

PropertyDefaultDescription
AISchemaEmitStandardtrueEmit schema to standard location
AISchemaEmitVendorfalseAlso emit a vendor-specific mirror
AISchemaVendorFolderFolder name for vendor output
AISchemaSignfalseSign the schema with RSA-SHA256
AISchemaSigningPrivateKeyPath to PEM private key file
AISchemaIncludeInternalsfalseInclude internal types and members
<PropertyGroup>
<AISchemaEmitStandard>true</AISchemaEmitStandard>
<AISchemaIncludeInternals>true</AISchemaIncludeInternals>
<AISchemaSign>true</AISchemaSign>
<AISchemaSigningPrivateKey>keys/signing.pem</AISchemaSigningPrivateKey>
</PropertyGroup>
[assembly: ApiContractConfig(
OutputFolder = "ai-skills/apis",
EmitStandard = true,
Sign = true,
SigningKeyId = "pine-2026")]

Apply [ApiContract] at the assembly level to opt-in to schema generation. All public types are included automatically. Use [ApiContract(Ignore = true)] on individual types or members to exclude them from the data file:

PropertyTypeDescription
IgnoreboolWhen true, excludes the element from the generated data file