You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for generating OpenAPI v2 spec. Closes#952 (#954)
* Add support for generating OpenAPI v2 spec. Closes#952
* Refactor OpenAPI spec version handling to use string type and improve error logging for unsupported versions
* Refactor OpenAPI spec version handling to use enum type and improve version validation
varprompt=$"For the specified request, generate an operation ID, compatible with an OpenAPI spec. Respond with just the ID in plain-text format. For example, for request such as `GET https://api.contoso.com/books/{{books-id}}` you return `getBookById`. For a request like `GET https://api.contoso.com/books/{{books-id}}/authors` you return `getAuthorsForBookById`. Request: {method.ToUpper()}{serverUrl}{parametrizedPath}";
varprompt=$"You're an expert in OpenAPI. You help developers build great OpenAPI specs for use with LLMs. For the specified request, generate a one-sentence description. Respond with just the description. For example, for a request such as `GET https://api.contoso.com/books/{{books-id}}` you return `Get a book by ID`. Request: {method.ToUpper()}{serverUrl}{parametrizedPath}";
0 commit comments