-
-
Notifications
You must be signed in to change notification settings - Fork 547
Open
Description
We updated our OpenAPI v1 to v3 and we encountered this issue with a description of the model:
Java Code
public abstract class MyClass implements Serializable {
@NotNull
@Schema(description = "MY string with spaces")
private MySource source;
}OpenAPI Schema part
"MyClass": {
"properties":
{
"source": {
"type": "string",
"description": "MY string with spaces",
"enum": [
"value",
]
}
}
}Typescript
export type MyClass = {
'MY string with spaces': MyClass.'MY string with spaces'
}
export namespace MyClass {
export enum 'MY string with spaces'; {
value = 'value'
}
}The enum with spaces is not supported in the Typescript output.
Probably the cod that creates the issue:
https://github.com/ferdikoomen/openapi-typescript-codegen/blob/e1268b197a3924a58cbacea3c3c9e781400ab304/src/openApi/v3/parser/getEnumFromDescription.ts
ferenc-solyom
Metadata
Metadata
Assignees
Labels
No labels