postman-to-openapi
postman-to-openapi copied to clipboard
Not converting correctly notion api
- Postman Notion API:
https://www.postman.com/notionhq/workspace/notion-s-api-workspace/collection/15568543-d990f9b7-98d3-47d3-9131-4866ab9c6df2
-
Convert using this library
-
Providing the schema to GPTS. Error in GPT Action builder:
In components section, schemas subsection is not an object
In path /v1/users/{id}, method get, operationId retrieveAUser, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/users/{id}', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/users, method get, operationId listAllUsers, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/users', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/users/me, method get, operationId retrieveYourTokensBotUser, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/users/me', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/databases/{id}, method get, operationId retrieveADatabase, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/databases/{id}', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/databases/{id}, method patch, operationId updateDatabaseProperties, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/databases/{id}', 'patch', 'requestBody', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/databases/{id}/query, method post, operationId filterADatabase, parameter Authorization has location header; ignoring
In path /v1/databases/{id}/query, method post, operationId filterADatabase, parameter Content-Type has location header; ignoring
In path /v1/databases/{id}/query, method post, operationId filterADatabase, parameter Notion-Version has location header; ignoring
In path /v1/databases/{id}/query, method post, operationId filterADatabase, request body schema is not an object schema; skipping
In context=('paths', '/v1/databases/{id}/query', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/databases/{id}/query, method post, operationId filterADatabase, skipping function due to errors
In path /v1/databases/, method post, operationId createADatabase, parameter Content-Type has location header; ignoring
In path /v1/databases/, method post, operationId createADatabase, parameter Notion-Version has location header; ignoring
In path /v1/databases/, method post, operationId createADatabase, request body schema is not an object schema; skipping
In context=('paths', '/v1/databases/', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/databases/, method post, operationId createADatabase, skipping function due to errors
In path /v1/pages/, method post, operationId createAPageWithContent, parameter Authorization has location header; ignoring
In path /v1/pages/, method post, operationId createAPageWithContent, parameter Content-Type has location header; ignoring
In path /v1/pages/, method post, operationId createAPageWithContent, parameter Notion-Version has location header; ignoring
In path /v1/pages/, method post, operationId createAPageWithContent, request body schema is not an object schema; skipping
In context=('paths', '/v1/pages/', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/pages/, method post, operationId createAPageWithContent, skipping function due to errors
In path /v1/pages/{id}, method get, operationId retrieveAPage, parameter Notion-Version has location header; ignoring
In path /v1/pages/{id}, method get, operationId retrieveAPage, parameter has location header; ignoring
In context=('paths', '/v1/pages/{id}', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/pages/{id}, method patch, operationId archiveAPage, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/pages/{id}', 'patch', 'requestBody', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/pages/{page_id}/properties/{property_id}, method get, operationId retrieveAPagePropertyItem, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/pages/{page_id}/properties/{property_id}', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/blocks/{id}/children, method get, operationId retrieveBlockChildren, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/blocks/{id}/children', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/blocks/{id}/children, method patch, operationId appendBlockChildren, parameter Authorization has location header; ignoring
In path /v1/blocks/{id}/children, method patch, operationId appendBlockChildren, parameter Content-Type has location header; ignoring
In path /v1/blocks/{id}/children, method patch, operationId appendBlockChildren, parameter Notion-Version has location header; ignoring
In path /v1/blocks/{id}/children, method patch, operationId appendBlockChildren, request body schema is not an object schema; skipping
In context=('paths', '/v1/blocks/{id}/children', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/blocks/{id}/children, method patch, operationId appendBlockChildren, skipping function due to errors
In path /v1/blocks/{id}, method patch, operationId updateABlock, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/blocks/{id}', 'patch', 'requestBody', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/blocks/{id}, method get, operationId retrieveABlock, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/blocks/{id}', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/blocks/{id}, method delete, operationId deleteABlock, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/blocks/{id}', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/search, method post, operationId search, parameter Content-Type has location header; ignoring
In path /v1/search, method post, operationId search, parameter Notion-Version has location header; ignoring
In path /v1/search, method post, operationId search, request body schema is not an object schema; skipping
In context=('paths', '/v1/search', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/search, method post, operationId search, skipping function due to errors
In path /v1/comments, method get, operationId retrieveComments, parameter Notion-Version has location header; ignoring
In context=('paths', '/v1/comments', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/comments, method post, operationId addCommentToDiscussion, parameter Content-Type has location header; ignoring
In path /v1/comments, method post, operationId addCommentToDiscussion, parameter Notion-Version has location header; ignoring
In path /v1/comments, method post, operationId addCommentToDiscussion, request body schema is not an object schema; skipping
In context=('paths', '/v1/comments', '200', 'response', 'content', 'application/json', 'schema'), object schema missing properties
In path /v1/comments, method post, operationId addCommentToDiscussion, skipping function due to errors
Some discussions:
https://community.openai.com/t/openai-not-supporting-request-headers-for-chatgpt-plugins-parameter-x-has-location-header-ignoring/182897/7
Based on the documentation: https://github.com/OAI/OpenAPI-Specification/blob/3.1.0-rc1/versions/3.0.0.md#fixed-fields-10
- If in is "header" and the name field is "Accept", "Content-Type" or "Authorization", the parameter definition SHALL be ignored.
- For all other cases, the name corresponds to the parameter name used by the in property.
The problem is that is ignoring "Notion-Version" and it is wrong! So, this issue is maybe in the OpenAI side.