TTMSMCPJSONSchemaOptions Record
Settings that control how a JSON Schema is generated from a class or record: which members are reflected, whether the root object announces the schema dialect, and how deep nested object types are expanded.
API unit family: TMS.MCP.JSONSchema
Syntax
TTMSMCPJSONSchemaOptions = record
Fields and properties
| Name | Type | Description |
|---|---|---|
EmitSchemaKey |
Boolean |
When True, the root object carries a $schema key naming the schema dialect. Turn it off when the generated object is embedded inside a larger schema, such as a single property of a tool input schema. Defaults to True. |
IncludePublic |
Boolean |
When True, public properties are reflected in addition to published ones. Use it for plain classes that declare no published section. Defaults to False. |
IncludePublicFields |
Boolean |
When True, public fields are reflected alongside properties, which is what makes a plain record with public fields usable as a schema source. Defaults to False. |
MaxDepth |
Integer |
How many levels of nested object properties are expanded. It guards against endless recursion on a type that refers back to itself; beyond the limit a nested object is emitted without its own properties. Defaults to 10. |
Methods
| Name | Description |
|---|---|
| Default | Returns the settings used when no options are passed: published members only, the $schema key emitted, and a maximum nesting depth of 10. |