![]() |
VOOZH | about |
SchemaGenerationContextCache Class
Namespace: Json.Schema.Generation
Inheritance: SchemaGenerationContextCache 🡒 object
Gets the contexts for the current run.
Gets or creates a Json.Schema.Generation.TypeGenerationContext based on the given type and attribute set.
1
public static TypeGenerationContext Get(Type type)
| Parameter | Type | Description |
|---|---|---|
| type | Type | The type to generate. |
A generation context, from the cache if one exists with the specified type and attribute set; otherwise a new one. New contexts are automatically cached.
Use this in your generator if it needs to create keywords with subschemas.
A new version of content is available.