OpenAPITools / OpenAPITools/openapi-generator
Not generating C# "KeyValuePairOfStringStringValues"
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
When using a parameter of type IFormCollection swashbuckle generates the following schema:
"KeyValuePairOfStringStringValues": {
"type": "object",
"properties": {
"key": {
"type": "string",
"nullable": true
},
"value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
This gets generated in my service import { KeyValuePairOfStringStringValues } from '../model/models'; but the file does not exist in models.
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
Start by comparing the generated KeyValuePairOfStringStringValues schema with the generated models import for the IFormCollection parameter. Trace how this schema is converted into the C# client models and verify that the referenced model is generated and present in the models output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, openapi
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100