Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > IJsonSchemaLoadOptions > customFormats

IJsonSchemaLoadOptions.customFormats property

Any custom formats to consider during validation. Some standard formats are supported out-of-the-box (e.g. emails, uris), but additional formats can be defined here. You could for example define generic numeric formats (e.g. uint8) or domain-specific formats.

Signature:

customFormats?: Record<string, IJsonSchemaCustomFormat<string> | IJsonSchemaCustomFormat<number>>;