Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
663b1ab
OpenApiDocuments Diff Preview (#303)
Shwetap05 Aug 15, 2018
6ce0d25
Merge pull request #321 from Microsoft/master
PerthCharern Sep 26, 2018
212b6ac
Merge pull request #325 from Microsoft/perthcharern/fixDateTimeJson
PerthCharern Oct 1, 2018
0c86ee2
Open api schema diff (#316)
Shwetap05 Oct 1, 2018
a674f47
Added comparison logic for
Shwetap05 Oct 5, 2018
f9bdc15
FIx review comments
Shwetap05 Oct 10, 2018
59260d3
Added more comparers (#328)
Shwetap05 Oct 11, 2018
f3efe85
Comparer logic for Example
Shwetap05 Oct 11, 2018
f3e778a
merge
Shwetap05 Oct 11, 2018
17079ee
Fix merge issues
Shwetap05 Oct 11, 2018
9063d2a
Fix review comments
Shwetap05 Oct 16, 2018
3eb2200
Open api example comparer (#331)
Shwetap05 Oct 16, 2018
0573764
fixes#330-Yield validation err when an invalid security req key found
senthilkumarmohan Oct 25, 2018
78b0154
Merge pull request #334 from Microsoft/master
PerthCharern Oct 26, 2018
8c7b7ef
Merge pull request #339 from senthilkumarmohan/bugfix#330-invalid-sec…
PerthCharern Oct 30, 2018
b39d037
Collapsed components that are references
darrelmiller Sep 15, 2019
f621768
Diagnostic moved from MapNode to ParsingContext
VitaliyKurokhtin Nov 18, 2019
2c7663a
Explicitly specified string must stay a string
VitaliyKurokhtin Nov 18, 2019
83b5d87
Small readers optimization
VitaliyKurokhtin Nov 22, 2019
a589416
'produces' at operation level must override one specified at global l…
VitaliyKurokhtin Nov 25, 2019
4df5db8
OpenApiYamlDocumentReader added
VitaliyKurokhtin Nov 26, 2019
d180b0d
Orphan method removed
VitaliyKurokhtin Nov 26, 2019
281fc85
Always emitting description property for response object. It's required
VitaliyKurokhtin Dec 2, 2019
ef69409
Tests fixed
VitaliyKurokhtin Dec 2, 2019
e2f8da0
Guessing datetime offset type from empty string
VitaliyKurokhtin Dec 10, 2019
84839da
Updated nuget versions for next package release
darrelmiller Dec 15, 2019
122a471
Merge branch 'master' into vnext
darrelmiller Dec 15, 2019
79f608d
Merge branch 'OpenApiExampleComparer' into dm/updatevnext
darrelmiller Dec 15, 2019
0522d63
Marked failed comparer tests as skip
darrelmiller Dec 15, 2019
a66f4f1
Comment change to trigger build
darrelmiller Dec 15, 2019
5e0c6a7
Another comment change to trigger build
darrelmiller Dec 15, 2019
f1af891
Merge pull request #439 from microsoft/dm/OpenApiComparer
darrelmiller Dec 15, 2019
4963f14
Merge branch 'vnext' into 1.2.0-preview
darrelmiller Dec 15, 2019
38287d7
Merge pull request #437 from microsoft/1.2.0-preview
darrelmiller Dec 15, 2019
1c8398c
Merge branch 'vnext' into vvk/diagnostic-in-context
darrelmiller Dec 16, 2019
abfebb1
Merge pull request #433 from VitaliyKurokhtin/vvk/diagnostic-in-context
darrelmiller Dec 16, 2019
42d51bb
Always emitting description for response unless $ref is specified
VitaliyKurokhtin Dec 17, 2019
92ba7a3
Merge branch 'vnext' into vvk/required
darrelmiller Dec 29, 2019
06bc518
Merge pull request #436 from VitaliyKurokhtin/vvk/required
darrelmiller Dec 30, 2019
188593d
Resolve merge conflicts
darrelmiller Jan 2, 2020
a4c86b9
Merge remote-tracking branch 'origin/vnext' into vvk/readers
darrelmiller Jan 2, 2020
3730d63
Make OpenApiYamlDocumentReader internal
darrelmiller Jan 2, 2020
ad37608
Updates to reflect other changes to vnext
darrelmiller Jan 2, 2020
2c431c0
Merge pull request #443 from microsoft/vvk/readers
darrelmiller Jan 2, 2020
147b947
Merge branch 'vnext' into vvk/produces
darrelmiller Jan 3, 2020
48fe3d5
Merge pull request #435 from VitaliyKurokhtin/vvk/produces
darrelmiller Jan 3, 2020
cefec96
Merge branch 'vnext' into vvk/explicit-string
darrelmiller Jan 3, 2020
841b947
Merge pull request #431 from VitaliyKurokhtin/vvk/explicit-string
darrelmiller Jan 3, 2020
42303da
Resolve all references in a parameter
darrelmiller Jan 4, 2020
ffae5d2
Fixed merge conflicts with vnext
darrelmiller Jan 4, 2020
9d4e6a4
Merge pull request #445 from microsoft/dm/fix425
darrelmiller Jan 4, 2020
9e8a5da
Merge branch 'vnext' into dm/componentreference
darrelmiller Jan 4, 2020
409e039
Merge pull request #418 from microsoft/dm/componentreference
darrelmiller Jan 4, 2020
1ef0f3b
Formatting fixes generated from dotnet-format
darrelmiller Jan 5, 2020
9c5a46b
Updated referenced packages
darrelmiller Jan 5, 2020
af7811e
Updated V2 writer to output relative server Urls
darrelmiller Jan 6, 2020
3fffa56
Merge pull request #446 from microsoft/dm/updatedPackages
darrelmiller Jan 6, 2020
c8b6a8e
Merge branch 'vnext' into dm/formatting
darrelmiller Jan 6, 2020
3aeeef6
Merge pull request #447 from microsoft/dm/formatting
darrelmiller Jan 6, 2020
c795a24
Merge branch 'vnext' into dm/fix440
darrelmiller Jan 6, 2020
8ea512c
Merge pull request #448 from microsoft/dm/fix440
darrelmiller Jan 6, 2020
f00c27c
Added support for inlining references when writing out API descriptions
darrelmiller Jan 7, 2020
08bb98f
Added empty object to components.
darrelmiller Jan 7, 2020
456cec5
Added support for inlining header refefences
darrelmiller Jan 7, 2020
05619b5
Merged changes with vnext
darrelmiller Jan 7, 2020
9e42a5f
Added support for handling cycles
darrelmiller Jan 13, 2020
3516127
Merge pull request #449 from microsoft/dm/inlinewriter
darrelmiller Jan 13, 2020
e1ecbce
Seems to correctly inline schemas for v2
darrelmiller Jan 18, 2020
9f715d4
Initial implementation of OpenAPI cmdline tool
darrelmiller Jan 20, 2020
3c91a1d
Merge pull request #452 from microsoft/dm/fixv2cycles
darrelmiller Jan 20, 2020
ab91774
Merge remote-tracking branch 'origin/vnext' into dm/commandline
darrelmiller Jan 21, 2020
6926b6d
First running version of OpenApi tool
darrelmiller Jan 21, 2020
bdf23f7
Installation section added to readme file.
mihaj Feb 5, 2020
d7c6bbf
Fixes #456.
Feb 7, 2020
da0612c
Merge pull request #457 from ozziepeeps/456
darrelmiller Feb 10, 2020
9212cbd
Merge branch 'vnext' into vnext
darrelmiller Feb 10, 2020
d5c0b0b
Merge pull request #455 from mihaj/vnext
darrelmiller Feb 10, 2020
bd19a68
Fixes #458
Feb 18, 2020
e6989b5
Safer parsing of explicit strings
VitaliyKurokhtin Feb 19, 2020
8851cf3
Merge pull request #461 from VitaliyKurokhtin/explicit-string-parsing
darrelmiller Mar 5, 2020
542bddc
Merge branch 'vnext' into 458
darrelmiller Mar 5, 2020
6f5e63c
Merge pull request #460 from ozziepeeps/458
darrelmiller Mar 5, 2020
29b8144
Merge branch 'vnext' into dm/commandline
darrelmiller Mar 5, 2020
cf7002a
Fix warnings
darrelmiller Mar 6, 2020
fa20804
Updated nuget packages
darrelmiller Mar 6, 2020
92f2fe4
touch
darrelmiller Mar 6, 2020
03b1034
Moved commandline tool to .net core 3.0
darrelmiller Mar 6, 2020
842be3b
Moved commandline tool to .net core 2.2
darrelmiller Mar 6, 2020
8215249
Put commandline tool back to 3.1 now that pipeline has new Nuget
darrelmiller Mar 6, 2020
fc399ed
Fixed inlining of v2
darrelmiller Mar 9, 2020
86c41f8
Merge pull request #453 from microsoft/dm/commandline
darrelmiller Mar 9, 2020
596b359
Merge branch 'vnext' into dm/fixv2inline
darrelmiller Mar 9, 2020
61b44fc
Merge pull request #465 from microsoft/dm/fixv2inline
darrelmiller Mar 9, 2020
8a7074d
Updated to 1.2.0-preview.2
darrelmiller Mar 9, 2020
ca68755
Merge pull request #466 from microsoft/dm/updatepreview2
darrelmiller Mar 9, 2020
10485c0
Fixes missing oneOf child object in walker method for OpenApiSchema
Apr 1, 2020
5429aec
Merge pull request #469 from irvinesunday/vnext
darrelmiller Apr 2, 2020
73ee43f
Updated version number
darrelmiller Apr 2, 2020
3d62054
Merge pull request #470 from microsoft/dm/1.2.0-preview.3
darrelmiller Apr 2, 2020
b7d1006
Updated version to 1.2.0
darrelmiller May 24, 2020
1b904ab
Removed comparer functionality for this release as it is not ready
darrelmiller May 25, 2020
316d703
Added missing comment
darrelmiller May 25, 2020
c309dd9
Fixed build.cmd file
darrelmiller Jun 13, 2020
7b0332a
Fixed comment
darrelmiller Jun 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions 123 .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
###############################
# Core EditorConfig Options #
###############################
# All files
[*]
indent_style = space
# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom
###############################
# .NET Coding Conventions #
###############################
[*.{cs,vb}]
# Organize usings
dotnet_sort_system_directives_first = true
# this. preferences
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_property = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_event = false:silent
# Language keywords vs BCL types preferences
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_predefined_type_for_member_access = true:silent
# Parentheses preferences
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
dotnet_style_readonly_field = true:suggestion
# Expression-level preferences
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
###############################
# Naming Conventions #
###############################
# Style Definitions
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Use PascalCase for constant fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################
# C# Coding Conventions #
###############################
[*.cs]
# var preferences
csharp_style_var_for_built_in_types = true:silent
csharp_style_var_when_type_is_apparent = true:silent
csharp_style_var_elsewhere = true:silent
# Expression-bodied members
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
# Pattern matching preferences
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
# Null-checking preferences
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
# Modifier preferences
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
# Expression-level preferences
csharp_prefer_braces = true:silent
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_pattern_local_over_anonymous_function = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
###############################
# C# Formatting Rules #
###############################
# New line preferences
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
# Indentation preferences
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = flush_left
# Space preferences
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
# Wrapping preferences
csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true
###############################
# VB Coding Conventions #
###############################
[*.vb]
# Modifier preferences
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
12 changes: 10 additions & 2 deletions 12 Microsoft.OpenApi.sln
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2027
# Visual Studio Version 16
VisualStudioVersion = 16.0.29613.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.OpenApi", "src\Microsoft.OpenApi\Microsoft.OpenApi.csproj", "{A8E50143-69B2-472A-9D45-3F9A05D13202}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4AEDAD90-F854-4940-BFEE-6374CC92CAB0}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
build.cmd = build.cmd
readme.md = readme.md
EndProjectSection
Expand All @@ -25,6 +26,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{6357D7FD-2
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.OpenApi.SmokeTests", "test\Microsoft.OpenApi.SmokeTests\Microsoft.OpenApi.SmokeTests.csproj", "{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.OpenApi.Tool", "src\Microsoft.OpenApi.Tool\Microsoft.OpenApi.Tool.csproj", "{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -55,6 +58,10 @@ Global
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC}.Release|Any CPU.Build.0 = Release|Any CPU
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -66,6 +73,7 @@ Global
{AD83F991-DBF3-4251-8613-9CC54C826964} = {6357D7FD-2DE4-4900-ADB9-ABC37052040A}
{1ED3C2C1-E1E7-4925-B4E6-2D969C3F5237} = {6357D7FD-2DE4-4900-ADB9-ABC37052040A}
{AD79B61D-88CF-497C-9ED5-41AE3867C5AC} = {6357D7FD-2DE4-4900-ADB9-ABC37052040A}
{254841B5-7DAC-4D1D-A9C5-44FE5CE467BE} = {E546B92F-20A8-49C3-8323-4B25BB78F3E1}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9F171EFC-0DB5-4B10-ABFA-AF48D52CC565}
Expand Down
5 changes: 5 additions & 0 deletions 5 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Project Objectives
- Provide OpenAPI description writers for both V2 and V3 specification formats.
- Enable developers to create Readers that translate different data formats into OpenAPI descriptions.

# Installation

- Install core Nuget package `Microsoft.OpenApi`
- Install readers Nuget package `Microsoft.OpenApi.Readers`

# Processors
The OpenAPI.NET project holds the base object model for representing OpenAPI documents as .NET objects. Some developers have found the need to write processors that convert other data formats into this OpenAPI.NET object model. We'd like to curate that list of processors in this section of the readme.

Expand Down
18 changes: 7 additions & 11 deletions 18 build.cmd
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
@echo off
if "%~1"=="" goto :error

SET VERSION=%~1

Echo Building Microsoft.OpenApi
Echo Building Microsoft.OpenApi

SET PROJ=%~dp0src\Microsoft.OpenApi\Microsoft.OpenApi.csproj
dotnet build %PROJ% /t:restore /p:Configuration=Release
dotnet build %PROJ% /t:build /p:Configuration=Release
dotnet build %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts;Version=%VERSION%
dotnet msbuild %PROJ% /t:restore /p:Configuration=Release
dotnet msbuild %PROJ% /t:build /p:Configuration=Release
dotnet msbuild %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts

Echo Building Microsoft.OpenApi.Readers

SET PROJ=%~dp0src\Microsoft.OpenApi.Readers\Microsoft.OpenApi.Readers.csproj
dotnet build %PROJ% /t:restore /p:Configuration=Release
dotnet build %PROJ% /t:build /p:Configuration=Release
dotnet build %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts;Version=%VERSION%
dotnet msbuild %PROJ% /t:restore /p:Configuration=Release
dotnet msbuild %PROJ% /t:build /p:Configuration=Release
dotnet msbuild %PROJ% /t:pack /p:Configuration=Release;PackageOutputPath=%~dp0artifacts

goto :end
:error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public OpenApiReaderException(string message, YamlNode node) : base(message)
{
// This only includes line because using a char range causes tests to break due to CR/LF & LF differences
// See https://tools.ietf.org/html/rfc5147 for syntax
Pointer = $"#line={node.Start.Line}";
Pointer = $"#line={node.Start.Line}";
}

/// <summary>
Expand All @@ -43,4 +43,4 @@ public OpenApiReaderException(string message, YamlNode node) : base(message)
/// <param name="innerException">Inner exception that caused this exception to be thrown.</param>
public OpenApiReaderException(string message, Exception innerException) : base(message, innerException) { }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ public OpenApiUnsupportedSpecVersionException(string specificationVersion, Excep
/// </summary>
public string SpecificationVersion { get; }
}
}
}
2 changes: 1 addition & 1 deletion 2 src/Microsoft.OpenApi.Readers/Interface/IDiagnostic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ namespace Microsoft.OpenApi.Readers.Interface
public interface IDiagnostic
{
}
}
}
2 changes: 1 addition & 1 deletion 2 src/Microsoft.OpenApi.Readers/Interface/IOpenApiReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public interface IOpenApiReader<TInput, TDiagnostic> where TDiagnostic : IDiagno
/// <returns>The Open API document.</returns>
OpenApiDocument Read(TInput input, out TDiagnostic diagnostic);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ internal interface IOpenApiVersionService
/// <returns>Instance of OpenApiDocument populated with data from rootNode</returns>
OpenApiDocument LoadDocument(RootNode rootNode);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Company>Microsoft</Company>
<Title>Microsoft.OpenApi.Readers</Title>
<PackageId>Microsoft.OpenApi.Readers</PackageId>
<Version>1.1.4</Version>
<Version>1.2.0</Version>
<Description>OpenAPI.NET Readers for JSON and YAML documents</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageTags>OpenAPI .NET</PackageTags>
Expand All @@ -26,7 +26,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SharpYaml" Version="1.6.1" />
<PackageReference Include="SharpYaml" Version="1.6.5" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Microsoft.OpenApi.Readers/OpenApiDiagnostic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public class OpenApiDiagnostic : IDiagnostic
/// </summary>
public OpenApiSpecVersion SpecificationVersion { get; set; }
}
}
}
9 changes: 6 additions & 3 deletions 9 src/Microsoft.OpenApi.Readers/OpenApiReaderSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using Microsoft.OpenApi.Any;
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Interfaces;
using Microsoft.OpenApi.Readers.ParseNodes;
using Microsoft.OpenApi.Validations;
Expand Down Expand Up @@ -42,7 +45,7 @@ public class OpenApiReaderSettings
/// <summary>
/// Dictionary of parsers for converting extensions into strongly typed classes
/// </summary>
public Dictionary<string, Func<IOpenApiAny , OpenApiSpecVersion, IOpenApiExtension>> ExtensionParsers { get; set; } = new Dictionary<string, Func<IOpenApiAny, OpenApiSpecVersion, IOpenApiExtension>>();
public Dictionary<string, Func<IOpenApiAny, OpenApiSpecVersion, IOpenApiExtension>> ExtensionParsers { get; set; } = new Dictionary<string, Func<IOpenApiAny, OpenApiSpecVersion, IOpenApiExtension>>();

/// <summary>
/// Rules to use for validating OpenAPI specification. If none are provided a default set of rules are applied.
Expand All @@ -52,6 +55,6 @@ public class OpenApiReaderSettings
/// <summary>
/// URL where relative references should be resolved from if the description does not contain Server definitions
/// </summary>
public Uri BaseUrl { get; set; }
public Uri BaseUrl { get; set; }
}
}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.