Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomoneill/nswag-base-class-issue
Just some example code to support my issue over at nswag
https://github.com/tomoneill/nswag-base-class-issue
Last synced: 16 days ago
JSON representation
Just some example code to support my issue over at nswag
- Host: GitHub
- URL: https://github.com/tomoneill/nswag-base-class-issue
- Owner: TomONeill
- Created: 2022-10-26T17:01:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T17:23:07.000Z (over 2 years ago)
- Last Synced: 2024-11-16T00:37:15.281Z (3 months ago)
- Language: TypeScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reproduction:
0. Create a new class library `ClassLibrary1` with the following classes:
https://github.com/TomONeill/nswag-base-class-issue/blob/main/Class1.cs1. `nswag types2openapi /assembly:ClassLibrary1.dll /classnames:ClassLibrary1.ExtClass /output:swagger.json`
results in:
https://github.com/TomONeill/nswag-base-class-issue/blob/main/swagger.json2. `nswag openapi2tsclient /input:swagger.json /output:output.ts /TypeScriptVersion:4.8 /MarkOptionalProperties /HandleReferences`
results in:
https://github.com/TomONeill/nswag-base-class-issue/blob/main/output.ts