community[patch]: Adding HEADER to the list of supported locations (#21946)

**Description:** adds headers to the list of supported locations when
generating the openai function schema
This commit is contained in:
Bruno Alvisio
2024-05-22 15:47:56 -07:00
committed by GitHub
parent 50186da0a1
commit 5eabe90494
3 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"license": {
"name": "MIT"
}
},
"servers": [
{
"url": "http://petstore.swagger.io/v1"
}
],
"paths": {
"/pets": {
"get": {
"summary": "Info for a specific pet",
"operationId": "showPetById",
"parameters": [
{
"name": "header_param",
"in": "header",
"required": true,
"description": "A header param",
"schema": {
"type": "string"
}
}
]
}
}
}
}