We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found Refitter didn't generate valid C# output with kebab string casing parameters. See job-id in this sample OpenAPI 3.0 file:
job-id
openapi: "3.0.0" info: version: "v1" title: "Test API" servers: - url: "https://test.host.com/api/v1" paths: /jobs/{job-id}: get: tags: - "Jobs" summary: "Get job details" description: "Get the details of the specified job." parameters: - in: "path" name: "job-id" description: "Job ID" required: true schema: type: "string" responses: "200": description: "successful operation" content: application/json: schema: $ref: "#/components/schemas/JobResponse" components: schemas: JobResponse: type: "object" properties: job: type: "object" properties: start-date: type: "string" format: "date-time" details: type: "string"
Invalid C# parameter output snippet:
[Get("/jobs/{job-id}")] Task<JobResponse> Jobs(string job-id);
The text was updated successfully, but these errors were encountered:
@m7clarke thanks for taking the time to report this
This should be trivial to fix so I'll work on this immediately
Sorry, something went wrong.
Does this look ok to you @m7clarke
/// <summary> /// Get the details of the specified job. /// </summary> [Get("/jobs/{jobId}")] Task<JobResponse> Jobs(string jobId);
This is now fixed and released to nuget.org as version 0.3.4
Does this look ok to you @m7clarke /// <summary> /// Get the details of the specified job. /// </summary> [Get("/jobs/{jobId}")] Task<JobResponse> Jobs(string jobId);
Excellent work, thank you.
christianhelle
Successfully merging a pull request may close this issue.
I found Refitter didn't generate valid C# output with kebab string casing parameters.
See
job-id
in this sample OpenAPI 3.0 file:Invalid C# parameter output snippet:
The text was updated successfully, but these errors were encountered: