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

<Not edit Unchase OpenAPI (Swagger) Connected Service> #41

Closed
eriellensouza opened this issue Mar 1, 2021 · 7 comments
Closed

<Not edit Unchase OpenAPI (Swagger) Connected Service> #41

eriellensouza opened this issue Mar 1, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@eriellensouza
Copy link

The Connected Services component 'Unchase OpenAPI (Swagger) Connected Service' failed: (HRESULT:0x80131500) Error setting value to 'PathPrefix' on 'Microsoft.OpenApi.OData.OpenApiConvertSettings'.

@unchase
Copy link
Owner

unchase commented Mar 2, 2021

Hi, @eriellensouza
Could you please show your generated ConnectedService.json?

@unchase unchase added the bug Something isn't working label Mar 2, 2021
@unchase unchase self-assigned this Mar 2, 2021
@eriellensouza
Copy link
Author

{
"ProviderId": "Unchase.OpenAPI.ConnectedService",
"Version": "1.5.6.0",
"GettingStartedDocument": {
"Uri": "https://github.com/unchase/Unchase.OpenAPI.Connectedservice/"
},
"ExtendedData": {
"ServiceName": "AuthADWS",
"GeneratedFileName": "AuthADWS",
"Endpoint": "http://authad-qa.adiq.io/swagger/v1/swagger.json",
"GeneratedFileNamePrefix": null,
"GenerateCSharpClient": true,
"GenerateTypeScriptClient": false,
"GenerateCSharpController": false,
"OpenApiToCSharpClientCommand": {
"ClientBaseClass": null,
"ConfigurationClass": null,
"GenerateClientClasses": true,
"GenerateClientInterfaces": true,
"ClientBaseInterface": null,
"InjectHttpClient": true,
"DisposeHttpClient": true,
"ProtectedMethods": [],
"GenerateExceptionClasses": true,
"ExceptionClass": "ApiException",
"WrapDtoExceptions": true,
"UseHttpClientCreationMethod": false,
"HttpClientType": "System.Net.Http.HttpClient",
"UseHttpRequestMessageCreationMethod": false,
"UseBaseUrl": true,
"GenerateBaseUrlProperty": true,
"GenerateSyncMethods": false,
"ExposeJsonSerializerSettings": false,
"ClientClassAccessModifier": "public",
"TypeAccessModifier": "public",
"GenerateContractsOutput": false,
"ContractsNamespace": null,
"ContractsOutputFilePath": null,
"ParameterDateTimeFormat": "s",
"ParameterDateFormat": "yyyy-MM-dd",
"GenerateUpdateJsonSerializerSettingsMethod": true,
"UseRequestAndResponseSerializationSettings": false,
"SerializeTypeInformation": false,
"QueryNullValue": "",
"ClassName": "AuthADWS",
"OperationGenerationMode": 5,
"AdditionalNamespaceUsages": [],
"AdditionalContractNamespaceUsages": [],
"GenerateOptionalParameters": false,
"GenerateJsonMethods": false,
"EnforceFlagEnums": false,
"ParameterArrayType": "System.Collections.Generic.IEnumerable",
"ParameterDictionaryType": "System.Collections.Generic.IDictionary",
"ResponseArrayType": "System.Collections.Generic.ICollection",
"ResponseDictionaryType": "System.Collections.Generic.IDictionary",
"WrapResponses": false,
"WrapResponseMethods": [],
"GenerateResponseClasses": true,
"ResponseClass": "SwaggerResponse",
"Namespace": "Adiq.Backoffice.Antecipacao.Integracao.AuthADWS",
"RequiredPropertiesMustBeDefined": true,
"DateType": "System.DateTimeOffset",
"JsonConverters": null,
"AnyType": "object",
"DateTimeType": "System.DateTimeOffset",
"TimeType": "System.TimeSpan",
"TimeSpanType": "System.TimeSpan",
"ArrayType": "System.Collections.Generic.ICollection",
"ArrayInstanceType": "System.Collections.ObjectModel.Collection",
"DictionaryType": "System.Collections.Generic.IDictionary",
"DictionaryInstanceType": "System.Collections.Generic.Dictionary",
"ArrayBaseType": "System.Collections.ObjectModel.Collection",
"DictionaryBaseType": "System.Collections.Generic.Dictionary",
"ClassStyle": 0,
"GenerateDefaultValues": true,
"GenerateDataAnnotations": true,
"ExcludedTypeNames": [],
"ExcludedParameterNames": [],
"HandleReferences": false,
"GenerateImmutableArrayProperties": false,
"GenerateImmutableDictionaryProperties": false,
"JsonSerializerSettingsTransformationMethod": null,
"InlineNamedArrays": false,
"InlineNamedDictionaries": false,
"InlineNamedTuples": true,
"InlineNamedAny": false,
"GenerateDtoTypes": true,
"GenerateOptionalPropertiesAsNullable": false,
"GenerateNullableReferenceTypes": false,
"TemplateDirectory": null,
"TypeNameGeneratorType": null,
"PropertyNameGeneratorType": null,
"EnumNameGeneratorType": null,
"ServiceHost": null,
"ServiceSchemes": null,
"output": "AuthADWS.cs",
"newLineBehavior": 0
},
"ExcludeTypeNamesLater": false,
"OpenApiToTypeScriptClientCommand": null,
"OpenApiToCSharpControllerCommand": null,
"Variables": null,
"Runtime": 0,
"CopySpecification": false,
"OpenGeneratedFilesOnComplete": false,
"UseRelativePath": false,
"ConvertFromOdata": false,
"OpenApiConvertSettings": {
"ServiceRoot": "http://localhost",
"Version": {
"Major": 1,
"Minor": 0,
"Build": 1,
"Revision": -1,
"MajorRevision": -1,
"MinorRevision": -1
},
"EnableKeyAsSegment": null,
"EnableUnqualifiedCall": false,
"EnableOperationPath": true,
"EnableOperationImportPath": true,
"EnableNavigationPropertyPath": true,
"TagDepth": 4,
"PrefixEntityTypeNameBeforeKey": false,
"OpenApiSpecVersion": 1,
"EnableOperationId": true,
"EnableUriEscapeFunctionCall": false,
"VerifyEdmModel": false,
"IEEE754Compatible": false,
"TopExample": 50,
"EnablePagination": false,
"PageableOperationName": "listMore",
"EnableDiscriminatorValue": false,
"EnableDerivedTypesReferencesForResponses": false,
"EnableDerivedTypesReferencesForRequestBody": false,
"PathPrefix": "",
"ShowLinks": false,
"ShowSchemaExamples": false
},
"OpenApiSpecVersion": 1,
"UseNetworkCredentials": false,
"NetworkCredentialsUserName": null,
"NetworkCredentialsPassword": null,
"NetworkCredentialsDomain": null,
"WebProxyUri": null,
"UseWebProxy": false,
"UseWebProxyCredentials": false,
"WebProxyNetworkCredentialsUserName": null,
"WebProxyNetworkCredentialsPassword": null,
"WebProxyNetworkCredentialsDomain": null
}
}

@unchase
Copy link
Owner

unchase commented Mar 2, 2021

Change "PathPrefix": "", in this file to "PathPrefix": "Odata", and try again.

@eriellensouza
Copy link
Author

Is there any reason why the PathPrefix field is ""? It was some update of the extension?

@unchase
Copy link
Owner

unchase commented Mar 3, 2021

Did you generate the client code with the lastest version of the connected service first time?

@eriellensouza
Copy link
Author

The error occurs with the old versions already generated from the client.

@eriellensouza
Copy link
Author

The one generated with the recent version does not occur this registered error.

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

No branches or pull requests

2 participants