Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefh/ramltoopenapiconverter
Converts a RAML to Open API Specification (native C# dotnet)
https://github.com/stefh/ramltoopenapiconverter
convert converter csharp json openapi-specification openapi3 raml yaml yml
Last synced: 10 days ago
JSON representation
Converts a RAML to Open API Specification (native C# dotnet)
- Host: GitHub
- URL: https://github.com/stefh/ramltoopenapiconverter
- Owner: StefH
- License: mit
- Created: 2020-02-02T13:47:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-04T20:13:30.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T05:43:42.581Z (7 months ago)
- Topics: convert, converter, csharp, json, openapi-specification, openapi3, raml, yaml, yml
- Language: C#
- Homepage:
- Size: 216 KB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RamlToOpenApiConverter
Converts a RAML to Open API Specification[![NuGet: RamlToOpenApiConverter](https://buildstats.info/nuget/RamlToOpenApiConverter)](https://www.nuget.org/packages/RamlToOpenApiConverter)
## Usage
### Install the NuGet
```
PM> Install-Package RamlToOpenApiConverter
```### Convert a RAML file
``` c#
new RamlConverter()
.ConvertToFile("MediaWiki.raml", "MediaWiki.json", OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Json);
```### Limits
- ...## Details
This project uses the following tools:
- SharpYaml --> to read the RAML (as YAML)
- YamlDotNet --> to read the RAML (as YAML or JSON)
- Microsoft.OpenApi --> to process the Open API Model and convert the model to the output file