Wiremock.OpenAPIValidator 0.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Wiremock.OpenAPIValidator --version 0.0.1
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 Wiremock.OpenAPIValidator --version 0.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Wiremock.OpenAPIValidator&version=0.0.1
nuke :add-package Wiremock.OpenAPIValidator --version 0.0.1

WireMock Open API Validator

Build

This tool is intended to test your Wiremock stubs against an OpenAPI (v3) specification. This will check the following

Type of Check Description
API Method Ensure the mock is matching the API Verb provided
URL Pattern Match Ensure the mock will actually match the URL
Parameters Checks all required parameters are present and the object type is correct. Will also check optional parameters but will only produce a warning
Response Checks the response object and ensuring the types also match

Installation

dotnet tool install WiremockOpenApiValidator

Example

dotnet WiremockOpenApiValidator -o "C:/git/MyApi/OpenApi.yml" -w "C:/git/wiremock/stubs/mappings"

Usage

-o, --openApiPath             Required. File path to the Open API Spec

-w, --wiremockMappingsPath    Required. File path to the stubs mappings folder

--help                        Display this help screen.

--version                     Display version information.

Result

Example Result

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.1 498 6/29/2022
0.0.3 443 6/29/2022
0.0.2 402 6/29/2022
0.0.1 404 6/29/2022