Replies: 1 comment
-
This Java code seems not generated with emitter in this repo (https://www.npmjs.com/package/@typespec/http-client-java -- it won't generate code with Jakarta or Jackson). If it is not http-client-java, the issue may better be reported to the repository of this particular emitter. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
here is a piece of code:
It generates the following java classes:
BaseRequest
ARequest
BRequest
And here is the problem. It creates an inner enum (child class) that doesn't match with base type
![image](https://private-user-images.githubusercontent.com/40083462/404862297-bf0bb95e-f7bd-4067-ab25-d732633c0821.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTc0MDUsIm5iZiI6MTczODg1NzEwNSwicGF0aCI6Ii80MDA4MzQ2Mi80MDQ4NjIyOTctYmYwYmI5NWUtZjdiZC00MDY3LWFiMjUtZDczMjYzM2MwODIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDE1NTE0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5MWRkN2U0NzAyMWU1NTRiNjYzMTE5ZmZjN2Q2OGRiN2UwOTkzMGFhYzQzOGI3ZDY4MTY5OTZjZDkzMDAyOGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9koIQsS4XCWrfjFRmyI9qnoo0uhXnLFmv7q4A2K8YKo)
Is there a workaround or what did I miss?
Beta Was this translation helpful? Give feedback.
All reactions