Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Catalog Inheritance: System.Object

Syntax

Summary

Renders the whole-service map behind odata_describe_model: a summary of sets and navigations, a complete dump of every in-scope type, a relationship-only mermaid diagram, and the unbound operation list.

Remarks

This is the context-sized stand-in for $metadata. Every shape is composed from the cached EdmTypeShape instances so odata_describe_type, type cards, and the model map never disagree.

Methods

RenderCompleteJson

Renders the complete model as compact JSON: every in-scope type body, the complex types they use, and unbound operations.

Syntax

Parameters

Returns

Type: string { "types": {...}, "complexTypes"?: {...}, "operations"?: {...} }.

Exceptions

RenderCompleteText

Renders the complete model as text: every in-scope type in the declaration grammar, the complex types they use, then unbound operations.

Syntax

Parameters

Returns

Type: string Blank-line separated blocks, LF endings, no trailing newline.

Exceptions

RenderMermaid

Renders a relationship-only mermaid erDiagram for the in-scope types.

Syntax

Parameters

Returns

Type: string One A ||--o{ B : Nav line per navigation (||--o| for single targets) and a bare entity line for types with no navigations.

Exceptions

Remarks

No attribute compartments, whatever the requested detail. Names that are not mermaid-safe are quoted.

RenderOperationLines

Renders the unbound operations block for text shapes.

Syntax

Parameters

Returns

Type: System.Collections.Generic.IReadOnlyList<string> operations followed by one indented signature per unbound operation, or an empty list when none are declared.

Exceptions

RenderOperationsJson

Renders the unbound operations as a name-to-signature map.

Syntax

Parameters

Returns

Type: System.Collections.Generic.Dictionary<string, string> { "Name": "(args) -&gt; Return // writes" } in declaration order, functions first. Empty when none are declared.

Exceptions

RenderSummaryJson

Renders the model summary as compact JSON: every in-scope set with its type, key, docs, and navigations, then unbound operations.

Syntax

Parameters

Returns

Type: string { "sets": { "Customers": { "type", "key", "description"?, "navs"? } }, "operations"?: {...} }.

Exceptions

RenderSummaryText

Renders the model summary as text: one header per in-scope set with at most one doc line and its navigations, then unbound operations.

Syntax

Parameters

Returns

Type: string LF-separated lines, no property lists, no trailing newline.

Exceptions