Open sangee2004 opened 3 months ago
I'm testing this out now, using the Validate
function in the OpenAPI package we're using. It's failing on one of my Microsoft Graph OpenAPI documents, but any errors in this spec are not the kind of thing that would affect the user, so I think we are probably best off not validating.
Are you suggeseting we close this issue then?
@cjellick yeah
Steps to reproduce the problem:
gptscript
with invalid Openapi yaml (In my case I used - https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml and removed a space in front of path entry/pets/{petId
)OUTPUT:
Expected Behavior: In this case , we should be able to validate Openapi yaml even before it is used for execution and provide error messages that will help users fix their openapi yaml file.
Note -
gptscript --list-tools <yaml>
will also not return tools as expected in this case .