ObjectSchema class

Schema class for "object" types. Theproperties param must be a map ofSchema objects.

Signature:

exportdeclareclassObjectSchemaextendsSchema

Extends:Schema

Constructors

ConstructorModifiersDescription
(constructor)(schemaParams, properties, optionalProperties)Constructs a new instance of theObjectSchema class

Properties

PropertyModifiersTypeDescription
optionalPropertiesstring[]
properties{ [k: string]:TypedSchema; }

ObjectSchema.(constructor)

Constructs a new instance of theObjectSchema class

Signature:

constructor(schemaParams:SchemaParams,properties:{[k:string]:TypedSchema;},optionalProperties?:string[]);

Parameters

ParameterTypeDescription
schemaParamsSchemaParams
properties{ [k: string]:TypedSchema; }
optionalPropertiesstring[]

ObjectSchema.optionalProperties

Signature:

optionalProperties:string[];

ObjectSchema.properties

Signature:

properties:{[k:string]:TypedSchema;};

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-20 UTC.