diff --git a/SchemaExporter/SchemaExporter.cs b/SchemaExporter/SchemaExporter.cs index 550b3eb5..f58241a6 100644 --- a/SchemaExporter/SchemaExporter.cs +++ b/SchemaExporter/SchemaExporter.cs @@ -62,6 +62,12 @@ public static class SchemaExporter { var schema = JsonSchema.FromType(_generatorSettings); schema.Title = _title; + var schemaLinkProp = new JsonSchemaProperty + { + Type = JsonObjectType.String, + Description = "The schema to validate with" + }; + schema.Properties.Add("$schema", schemaLinkProp); schema.ExtensionData ??= new Dictionary(); schema.ExtensionData.Add("$docs", new Dictionary {