OpenAPITools / OpenAPITools/openapi-generator
[BUG] Uncompilable haskell client with non-existent "AnyType"
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- [ Yes] Have you provided a full/minimal spec to reproduce the issue?
- [ Tried, but it refused to download http://quorve.com/IP_RL_BSP_API-3.0.yaml ] Have you validated the input using an OpenAPI validator (example)?
- [ 6.0.1 ] Have you tested with the latest master to confirm the issue still exists?
- [ Y] Have you searched for related issues/PRs?
- [ Uncompilable haskell] What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Makes uncompilable haskell
openapi-generator version
6.0.1
OpenAPI declaration file content or url
http://quorve.com/IP_RL_BSP_API-3.0.yaml
Generation Details
Installed openapi-generator from Arch repo.
Didn't change any configs.
Ran openapi-generator generate -i IP_RL_BSP_API-3.0.yaml -g haskell-http-client
Entered generated directory
stack build
/home/ad/TIKO/openapi/lib/IPRLBSP/Model.hs:465:43: error:
Not in scope: type constructor or class ‘AnyType’
|
465 | , batchOperationResponseBody :: !(Maybe AnyType) -- ^ "body"
I can't find "AnyType" in Hoogle or the generated codebase.
Steps to reproduce
See above
Related issues/PRs
Suggest a fix
Use a type that exists instead of AnyType
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run openapi-generator with IP_RL_BSP_API-3.0.yaml and -g haskell-http-client, then inspect the generated Model.hs around line 465 where AnyType is referenced. Compare that field with the generated model types and rebuild with stack; done means the generated Haskell client compiles without an undefined AnyType.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, openapi
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100