StringSchema class
Stay organized with collections
Save and categorize content based on your preferences.
Schema class for "string" types. Can be used with or without enum values.
Signature:
export declare class StringSchema extends Schema
Extends: Schema
Constructors
Properties
Property |
Modifiers |
Type |
Description |
enum |
|
string[] |
|
StringSchema.(constructor)
Constructs a new instance of the StringSchema
class
Signature:
constructor(schemaParams?: SchemaParams, enumValues?: string[]);
Parameters
Parameter |
Type |
Description |
schemaParams |
SchemaParams |
|
enumValues |
string[] |
|
StringSchema.enum
Signature:
enum?: string[];
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["Schema class for \"string\" types. Can be used with or without enum values.\n\n**Signature:** \n\n export declare class StringSchema extends Schema \n\n**Extends:** [Schema](./ai.schema.md#schema_class)\n\nConstructors\n\nProperties\n\nStringSchema.(constructor)\n\nConstructs a new instance of the `StringSchema` class\n\n**Signature:** \n\n constructor(schemaParams?: SchemaParams, enumValues?: string[]);\n\nParameters\n\nStringSchema.enum\n\n**Signature:** \n\n enum?: string[];"]]