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