Skip to content

Create OpenAPI yaml files and generate contract C# files

Notifications You must be signed in to change notification settings

wxtsxt/openapi-first

Repository files navigation

openapi-first

Create OpenAPI yaml files and generate contract C# files

Generate contract code from json contract

Enrich the contract based on yaml format

 <OpenApiReference Include="OpenAPIs\swagger.yaml" CodeGenerator="NSwagCSharp"  Link="OpenAPIs\swagger.yaml" Options="/DateType:NodaTime.LocalDate /GenerateOptionalPropertiesAsNullable:true /GenerateNullableReferenceTypes:true" Namespace="WebApiFromTemplate" AdditionalNamespaceUsages="NodaTime">
      <AdditionalNamespaceUsages>NodaTime</AdditionalNamespaceUsages>
      <SourceUri>https://localhost:5051/swagger/v1/swagger.yaml</SourceUri>
</OpenApiReference>

OpenAPI data types

#tools

About

Create OpenAPI yaml files and generate contract C# files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages