Forum Discussion
Hi @jsmith141 ,
Do you have, by any chance, in the schemes an empty array element ?
If so, edit your file in the editor provided by SL and remove that line under schemes. For some reason, this happens when you generate a .yaml file for the project that you are creating the API and that exact error is triggered when trying to publish the API.
- jsmith1414 years agoNew Contributor III
Hi @j.angelevski,
I do not have any empty array elements in the schemes. In this case, I actually manually modified the demo specification file that SnapLogic provides. Thanks for pointing that out though. Could that be the issue? I need to auto generate the specification file from the project?
- cjhoward184 years agoEmployee
FYI this is a string with default defined correctly that is working for me if that String is the true desired type:
parameters: - description: Person ID to get. returns all if null default: - "empty" required: False name: putId in: query type: string collectionFormat: multi
- jsmith1414 years agoNew Contributor III
That was the issue. I completely overlooked it, I apologize I am still learning the yaml format and open API specification. Thanks so much for your help with this!
Best,
James