-
-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enum merging schema transformer #17
Comments
Should look like:
Compare enum schemes by serializing the schema and compare the strings... |
I have exactly the same issue. Look at the generated TS code: export enum SortDir {
Undefined = 0,
Asc = 1,
Desc = 2,
}
export enum sortDir {
Undefined = 0,
Asc = 1,
Desc = 2,
}
export enum sortDir2 {
Undefined = 0,
Asc = 1,
Desc = 2,
}
export enum sortDir3 {
Undefined = 0,
Asc = 1,
Desc = 2,
}
export enum sortDir4 {
Undefined = 0,
Asc = 1,
Desc = 2,
}
export enum sortDir5 {
Undefined = 0,
Asc = 1,
Desc = 2,
} |
Maybe insteadof modifing the doc we could also integrate this into the resolver and merge on the fly? |
I created this simple class https://gist.github.com/kpol/3e76ecf37024d4be364f8a5782557f9a to merge enums based on enum fullname (added this metadata as a vendor extension on service-side [Swashbuckle]). This class pre-process Swagger spec file for NSwag
|
@kpol How to use it? |
See RicoSuter/NSwag#29
The text was updated successfully, but these errors were encountered: