Hi Mabel,
I'm using a Postman v1 file, not Swagger. I'm not sure of any way to define this info in the Postman file, but it does work correctly in the Postman app.
Based on what you wrote, I created a Swagger v2 file with the following security parameters:
"host": "app1pub.smappee.net",
"basePath": "/dev/v1",
"securityDefinitions": {
"auth": {
"type": "oauth2",
"flow": "password",
"tokenUrl": "https://app1pub.smappee.net/dev/v1/oauth2/token",
"refreshUrl": "https://app1pub.smappee.net/dev/v1/oauth2/token",
"scopes": {},
"x-skip-client-authentication": false
}
When I try to create a custom connector in Flow using this file, I get the following error:
The request failed with error: '{"Code":"ValidationError","Message":"One or more fields contain incorrect values:","Target":null,"Details":[{"Message":"One or more fields contain incorrect values:"},{"Code":"ValidationError"},{"ErrorEntity":{"ExtendedCode":"Entity field: apiDefinitionUrl","InnerErrors":[{"Parameters":["contract","apiDefinitionUrl"],"Code":"ValidationError","Message":"Parsing error(s): JSON is valid against more than one schema from 'oneOf'. No valid schemas. Path 'securityDefinitions.auth', line 4789, position 13."}],"Code":"ValidationError","Message":"One or more fields contain incorrect values:"}}],"Innererror":null}'. The tracking Id is '7dd5cf3e-7b8d-4074-a1d5-2bf76e61d7eb'.Any suggestions for what is going wrong?
Thanks,
-Jimmy.