openapi
openapi copied to clipboard
Adding the openai.json to actions in GPTs
I tried to add openai.json and openai.yaml to actions in GPTs. However, several errors occurred in both files. In total, two types error messages are found. The first is
In context=('components', 'schemas', 'NonSplittingTagCommaSeparatedList', 'allOf', '0'), reference to unknown component TagCommaSeparatedList; using empty schema
I have fixed this type of error by changing
"allOF": [
{
"$ref": "#/components/schemas/TagCommaSeparatedList"
}
]
to
"items": {
"$ref": "#/components/schemas/TagCommaSeparatedList"
},
However, I can't solve the second type of problem:
In path /document/{document_id}, method post, operationId getDocumentStatus, parameter {'$ref': '#/components/parameters/DocumentID'} is has missing or non-string name; skipping
In path /document/{document_id}, method post, operationId getDocumentStatus, skipping function due to errors
In path /glossaries/{glossary_id}, method get, operationId getGlossary, parameter {'$ref': '#/components/parameters/GlossaryID'} is has missing or non-string name; skipping
In path /glossaries/{glossary_id}, method get, operationId getGlossary, skipping function due to errors
Everything looks fine to me, I don't know why is this error occurring. I have already tried changing name "document_id" to "DocumentID". Can any one help me on this?