From 9a73ec6e5486d84b6a30a5fa0ac5961b381fc3d3 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 19 May 2025 15:54:44 -0400 Subject: [PATCH] fix: wrong link to json schema spec in schema doc comments Signed-off-by: Vincent Biret --- .../Models/Interfaces/IOpenApiSchema.cs | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/Microsoft.OpenApi/Models/Interfaces/IOpenApiSchema.cs b/src/Microsoft.OpenApi/Models/Interfaces/IOpenApiSchema.cs index 8ef1dec1a..0469857a1 100644 --- a/src/Microsoft.OpenApi/Models/Interfaces/IOpenApiSchema.cs +++ b/src/Microsoft.OpenApi/Models/Interfaces/IOpenApiSchema.cs @@ -55,17 +55,17 @@ public interface IOpenApiSchema : IOpenApiDescribedElement, IOpenApiReadOnlyExte public Dictionary? Definitions { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public string? ExclusiveMaximum { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public string? ExclusiveMinimum { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// Value MUST be a string in V2 and V3. /// public JsonSchemaType? Type { get; } @@ -76,45 +76,45 @@ public interface IOpenApiSchema : IOpenApiDescribedElement, IOpenApiReadOnlyExte public string? Const { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// While relying on JSON Schema's defined formats, /// the OAS offers a few additional predefined formats. /// public string? Format { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public string? Maximum { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public string? Minimum { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public int? MaxLength { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public int? MinLength { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// This string SHOULD be a valid regular expression, according to the ECMA 262 regular expression dialect /// public string? Pattern { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public decimal? MultipleOf { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// The default value represents what would be assumed by the consumer of the input as the value of the schema if one is not provided. /// Unlike JSON Schema, the value MUST conform to the defined type for the Schema Object defined at the same level. /// For example, if type is string, then default can be "foo" but cannot be 1. @@ -142,64 +142,64 @@ public interface IOpenApiSchema : IOpenApiDescribedElement, IOpenApiReadOnlyExte public bool WriteOnly { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema. /// public List? AllOf { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema. /// public List? OneOf { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema. /// public List? AnyOf { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema. /// public IOpenApiSchema? Not { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public HashSet? Required { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// Value MUST be an object and not an array. Inline or referenced schema MUST be of a Schema Object /// and not a standard JSON Schema. items MUST be present if the type is array. /// public IOpenApiSchema? Items { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public int? MaxItems { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public int? MinItems { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public bool? UniqueItems { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// Property definitions MUST be a Schema Object and not a standard JSON Schema (inline or referenced). /// public Dictionary? Properties { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// PatternProperty definitions MUST be a Schema Object and not a standard JSON Schema (inline or referenced) /// Each property name of this object SHOULD be a valid regular expression according to the ECMA 262 r /// egular expression dialect. Each property value of this object MUST be an object, and each object MUST @@ -208,12 +208,12 @@ public interface IOpenApiSchema : IOpenApiDescribedElement, IOpenApiReadOnlyExte public Dictionary? PatternProperties { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public int? MaxProperties { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public int? MinProperties { get; } @@ -223,7 +223,7 @@ public interface IOpenApiSchema : IOpenApiDescribedElement, IOpenApiReadOnlyExte public bool AdditionalPropertiesAllowed { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// Value can be boolean or object. Inline or referenced schema /// MUST be of a Schema Object and not a standard JSON Schema. /// @@ -250,12 +250,12 @@ public interface IOpenApiSchema : IOpenApiDescribedElement, IOpenApiReadOnlyExte public List? Examples { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public List? Enum { get; } /// - /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00 + /// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation /// public bool UnevaluatedProperties { get; }