Skip to content
New issue

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

if a path contain colon (":") character then must be replace it #225

Closed
safakkesikci opened this issue Nov 21, 2023 · 4 comments · Fixed by #227
Closed

if a path contain colon (":") character then must be replace it #225

safakkesikci opened this issue Nov 21, 2023 · 4 comments · Fixed by #227
Assignees
Labels
bug Something isn't working

Comments

@safakkesikci
Copy link

bug

@safakkesikci safakkesikci added the bug Something isn't working label Nov 21, 2023
@christianhelle
Copy link
Owner

@safakkesikci Thanks for taking the time to report this.

Do you mind sharing the OpenAPI spec that had this problem?

@christianhelle
Copy link
Owner

@all-contributors please add @safakkesikci for bugs

Copy link
Contributor

@christianhelle

I've put up a pull request to add @safakkesikci! 🎉

@safakkesikci
Copy link
Author

@safakkesikci Thanks for taking the time to report this.

Do you mind sharing the OpenAPI spec that had this problem?

Thank you for the very quick response :)
i use to the SourceGenerator.

Problem: NSwag :/ maybe a workaround can be made.
RicoSuter/NSwag#4188

swagger doc:
customer.json

customer.refitter file:
{
"openApiPath": "customer.json",
"namespace": "Customer",
"naming": {
"useOpenApiTitle": false
},
"multipleInterfaces": "ByTag",
"operationNameTemplate": "{operationName}Async",
"outputFolder": "../Clients",
"outputFilename": "Customer.cs",
"codeGeneratorSettings": {
"requiredPropertiesMustBeDefined": true,
"generateDataAnnotations": true,
"anyType": "object",
"dateType": "System.DateTimeOffset",
"dateTimeType": "System.DateTimeOffset",
"timeType": "System.TimeSpan",
"timeSpanType": "System.TimeSpan",
"arrayType": "System.Collections.Generic.ICollection",
"dictionaryType": "System.Collections.Generic.IDictionary",
"arrayInstanceType": "System.Collections.ObjectModel.Collection",
"dictionaryInstanceType": "System.Collections.Generic.Dictionary",
"arrayBaseType": "System.Collections.ObjectModel.Collection",
"dictionaryBaseType": "System.Collections.Generic.Dictionary",
"propertySetterAccessModifier": "",
"generateImmutableArrayProperties": false,
"generateImmutableDictionaryProperties": false,
"handleReferences": false,
"jsonSerializerSettingsTransformationMethod": null,
"generateJsonMethods": false,
"enforceFlagEnums": false,
"inlineNamedDictionaries": false,
"inlineNamedTuples": true,
"inlineNamedArrays": false,
"generateOptionalPropertiesAsNullable": false,
"generateNullableReferenceTypes": false,
"generateNativeRecords": false,
"generateDefaultValues": true,
"inlineNamedAny": false,
"excludedTypeNames": []
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants