Criteo.OpenApi.Comparator.Cli 0.7.3

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet tool install --global Criteo.OpenApi.Comparator.Cli --version 0.7.3
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Criteo.OpenApi.Comparator.Cli --version 0.7.3
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Criteo.OpenApi.Comparator.Cli&version=0.7.3
nuke :add-package Criteo.OpenApi.Comparator.Cli --version 0.7.3

Open API Comparator

An OpenAPI tool to compare OpenAPI Specifications.

C# Library

The tool is available as a nuget package, directly usable into your C# application.

To install it run the command:

dotnet add package Criteo.OpenApi.Comparator

Here is an example of how to use the Comparator:

var differences = OpenApiComparator.Compare(
    oldOpenApiSpec,
    newOpenApiSpec
);

Command line tool

The comparator is also available as a command line tool.

To install it, run the command:

dotnet tool install -g Criteo.OpenApi.Comparator.Cli

You can then use the tool through the openapi-compare command:

openapi-compare -o new_oas.json -n old_oas.json -f Json

Available options: | Option | Small | Required | Description | |----------------|-------|----------|--------------------------------------------------------------------------------------------------------------| | --old | -o | true | Path to old OpenAPI Specification | | --new | -n | true | Path to new OpenAPI Specification | | --outputFormat | -f | false | Specifies in which format the differences should be displayed (default Json). Possible values: Json | Text. | | --help | -h | false | Log available options |

Comparison rules

Each comparison rule is documented in the documentation section.

Contributing

Any contribution is more than welcomed. For now, no specific rule must be applied to contribute, just create an Issue or a Pull Request and we'll try to handle it ASAP.

License

OpenApi Comparator is an Open Source software released under the Apache 2.0 license.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.7.3 1,377 3/21/2023
0.7.0 393 1/9/2023
0.6.0 262 1/6/2023
0.1.0 321 1/6/2023