Skip to content

Commit c62769a

Browse files
baywetCopilot
andcommitted
docs(library): add json schema spec links
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6e22ec6 commit c62769a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Microsoft.OpenApi/Models/Interfaces/IOpenApiSchemaMissingProperties.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public interface IOpenApiSchemaMissingProperties
1414
{
1515
/// <summary>
1616
/// $anchor - identifies a plain-name location-independent fragment within the schema resource.
17+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-core#name-anchor
1718
/// </summary>
1819
public string? Anchor { get; }
1920

@@ -45,41 +46,49 @@ public interface IOpenApiSchemaMissingProperties
4546
public IOpenApiSchema? UnevaluatedPropertiesSchema { get; }
4647

4748
/// <summary>
49+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation#name-contentencoding
4850
/// contentEncoding - identifies the encoding of string content.
4951
/// </summary>
5052
public string? ContentEncoding { get; }
5153

5254
/// <summary>
55+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation#name-contentmediatype
5356
/// contentMediaType - identifies the media type of string content.
5457
/// </summary>
5558
public string? ContentMediaType { get; }
5659

5760
/// <summary>
61+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-validation#name-contentschema
5862
/// contentSchema - provides a schema that describes the decoded string content.
5963
/// </summary>
6064
public IOpenApiSchema? ContentSchema { get; }
6165

6266
/// <summary>
67+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-core#name-propertynames
6368
/// propertyNames - provides a schema that validates property names.
6469
/// </summary>
6570
public IOpenApiSchema? PropertyNames { get; }
6671

6772
/// <summary>
73+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-core#name-dependentschemas
6874
/// dependentSchemas - maps property names to schemas that are applied when that property is present.
6975
/// </summary>
7076
public IDictionary<string, IOpenApiSchema>? DependentSchemas { get; }
7177

7278
/// <summary>
79+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-core#name-if
7380
/// if - applies a conditional schema that determines whether <see cref="Then"/> or <see cref="Else"/> should be evaluated.
7481
/// </summary>
7582
public IOpenApiSchema? If { get; }
7683

7784
/// <summary>
85+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-core#name-then
7886
/// then - applies when <see cref="If"/> evaluates successfully.
7987
/// </summary>
8088
public IOpenApiSchema? Then { get; }
8189

8290
/// <summary>
91+
/// Follow JSON Schema definition: https://json-schema.org/draft/2020-12/json-schema-core#name-else
8392
/// else - applies when <see cref="If"/> does not evaluate successfully.
8493
/// </summary>
8594
public IOpenApiSchema? Else { get; }

0 commit comments

Comments
 (0)