25 references to JsonSchemaConstants
Microsoft.Extensions.AI.Abstractions (25)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (6)
144
state.PushSchemaNode(
JsonSchemaConstants
.AnyOfPropertyName);
264
state.PushSchemaNode(
JsonSchemaConstants
.PropertiesPropertyName);
351
state.PushSchemaNode(
JsonSchemaConstants
.ItemsPropertyName);
369
state.PushSchemaNode(
JsonSchemaConstants
.PropertiesPropertyName);
371
state.PushSchemaNode(
JsonSchemaConstants
.ItemsPropertyName);
413
state.PushSchemaNode(
JsonSchemaConstants
.AdditionalPropertiesPropertyName);
src\Shared\JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (19)
298
objSchema.Add(
JsonSchemaConstants
.SchemaPropertyName, Schema);
303
objSchema.Add(
JsonSchemaConstants
.TitlePropertyName, Title);
308
objSchema.Add(
JsonSchemaConstants
.DescriptionPropertyName, Description);
313
objSchema.Add(
JsonSchemaConstants
.RefPropertyName, Ref);
318
objSchema.Add(
JsonSchemaConstants
.CommentPropertyName, Comment);
323
objSchema.Add(
JsonSchemaConstants
.TypePropertyName, type);
328
objSchema.Add(
JsonSchemaConstants
.FormatPropertyName, Format);
333
objSchema.Add(
JsonSchemaConstants
.PatternPropertyName, Pattern);
338
objSchema.Add(
JsonSchemaConstants
.ConstPropertyName, Constant);
349
objSchema.Add(
JsonSchemaConstants
.PropertiesPropertyName, properties);
360
objSchema.Add(
JsonSchemaConstants
.RequiredPropertyName, requiredArray);
365
objSchema.Add(
JsonSchemaConstants
.ItemsPropertyName, Items.ToJsonNode(options));
370
objSchema.Add(
JsonSchemaConstants
.AdditionalPropertiesPropertyName, AdditionalProperties.ToJsonNode(options));
375
objSchema.Add(
JsonSchemaConstants
.EnumPropertyName, Enum);
380
objSchema.Add(
JsonSchemaConstants
.NotPropertyName, Not.ToJsonNode(options));
391
objSchema.Add(
JsonSchemaConstants
.AnyOfPropertyName, anyOfArray);
396
objSchema.Add(
JsonSchemaConstants
.DefaultPropertyName, DefaultValue);
401
objSchema.Add(
JsonSchemaConstants
.MinLengthPropertyName, (JsonNode)minLength);
406
objSchema.Add(
JsonSchemaConstants
.MaxLengthPropertyName, (JsonNode)maxLength);