33 references to JsonSchema
Microsoft.Extensions.AI.Abstractions (33)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (31)
112
return CompleteSchema(ref state, new
JsonSchema
{ Ref = existingJsonPointer });
159
JsonSchema discriminatorSchema =
new
() { Constant = discriminatorNode };
210
schema =
new
()
337
return CompleteSchema(ref state,
new
()
355
return CompleteSchema(ref state,
new
()
379
return CompleteSchema(ref state,
new
()
386
new
JsonSchema
417
return CompleteSchema(ref state,
new
()
586
[typeof(bool)] = _ => new
JsonSchema
{ Type = JsonSchemaType.Boolean },
605
[typeof(char)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String, MinLength = 1, MaxLength = 1 },
606
[typeof(string)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String },
607
[typeof(byte[])] = _ => new
JsonSchema
{ Type = JsonSchemaType.String },
608
[typeof(Memory<byte>)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String },
609
[typeof(ReadOnlyMemory<byte>)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String },
610
[typeof(DateTime)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String, Format = "date-time" },
611
[typeof(DateTimeOffset)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String, Format = "date-time" },
612
[typeof(TimeSpan)] = _ => new
JsonSchema
620
[typeof(DateOnly)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String, Format = "date" },
621
[typeof(TimeOnly)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String, Format = "time" },
623
[typeof(Guid)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String, Format = "uuid" },
624
[typeof(Uri)] = _ => new
JsonSchema
{ Type = JsonSchemaType.String, Format = "uri" },
625
[typeof(Version)] = _ => new
JsonSchema
636
[typeof(JsonObject)] = _ => new
JsonSchema
{ Type = JsonSchemaType.Object },
637
[typeof(JsonArray)] = _ => new
JsonSchema
{ Type = JsonSchemaType.Array },
668
return new
JsonSchema
672
new
JsonSchema
{ Type = schemaType, Pattern = pattern },
673
new
JsonSchema
{ Enum = new() { (JsonNode)"NaN", (JsonNode)"Infinity", (JsonNode)"-Infinity" } },
678
return new
JsonSchema
{ Type = schemaType, Pattern = pattern };
753
return
new
() { Type = JsonSchemaType.String };
765
return
new
() { Enum = enumValues };
768
return
new
() { Type = JsonSchemaType.Integer };
src\Shared\JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (2)
470
schema = new
JsonSchema
{ Not = JsonSchema.CreateTrueSchema() };
473
schema = new
JsonSchema
();