effect-io-ai

Package: effect
Module: Schema

Schema.isIncludes

Validates at runtime that a string contains the specified literal substring.

Details

RegExp metacharacters in the substring are escaped in JSON Schema and arbitrary metadata so that the generated patterns retain literal includes semantics.

Signature

declare const isIncludes: (includes: string, annotations?: Annotations.Filter) => SchemaAST.Filter<string>

Source

Since v4.0.0