Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load the Slack OpenAPI definition #6

Open
hamzaed opened this issue Mar 22, 2020 · 2 comments
Open

Unable to load the Slack OpenAPI definition #6

hamzaed opened this issue Mar 22, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hamzaed
Copy link
Collaborator

hamzaed commented Mar 22, 2020

The bot is unable to load the definition of Slack API located at https://api.slack.com/specs/openapi/v2/slack_web.json

image

Reported by @UCW443

@hamzaed hamzaed added the bug Something isn't working label Mar 22, 2020
@hamzaed hamzaed self-assigned this Mar 22, 2020
@hamzaed
Copy link
Collaborator Author

hamzaed commented Mar 26, 2020

After some digging, I found out that the Slack definition use tuples (i.e., items taking as value an array of objects instead of an object).. However, the OpenAPI metamodel and the OpenAPI importer do not support tuple definitions

"items": [
	{"$ref": "#/definitions/objs_message"},
	{"type": "null"}
    ]

Other OpenAPI tools such as https://editor.swagger.io/ struggle with this as well.

@hamzaed
Copy link
Collaborator Author

hamzaed commented Mar 26, 2020

Also, the definition define type as an array instead a String (to define alternative types for the instances).

"type": [
	"object",
	"null",
	"array"]

This is not supported yet by the metamodel.

@hamzaed hamzaed changed the title Enable to load the Slack OpenAPI definition Unable to load the Slack OpenAPI definition Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant