Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

The provided openapi schema is invalid #41

Open
4 of 9 tasks
seunlanlege opened this issue Jun 19, 2020 · 0 comments
Open
4 of 9 tasks

The provided openapi schema is invalid #41

seunlanlege opened this issue Jun 19, 2020 · 0 comments

Comments

@seunlanlege
Copy link

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

go to https://editor.swagger.io/

import the schema

view the errors

Errors

 
Structural error at definitions.objs_channel.properties.latest.items
should be object
Jump to line 190
Structural error at definitions.objs_conversation.items
should be object
Jump to line 315
Structural error at definitions.objs_group.properties.latest.items
should be object
Jump to line 1059
Structural error at definitions.objs_message.properties.bot_id.items
should be object
Jump to line 1204
Structural error at definitions.objs_resources.properties.excluded_ids.items.items
should be object
Jump to line 1386
Structural error at definitions.objs_resources.properties.ids.items.items
should be object
Jump to line 1392
Structural error at definitions.objs_subteam.properties.auto_type.items
should be object
Jump to line 1426
Structural error at definitions.objs_subteam.properties.deleted_by.items
should be object
Jump to line 1441
Structural error at definitions.objs_user.items
should be object
Jump to line 1612
Semantic error at definitions.objs_user_profile.properties.fields.type
Schema "type" key must be a string
Jump to line 1797
Structural error at definitions.objs_user_profile.properties.fields.type
should be equal to one of the allowed values
allowedValues: array, boolean, integer, number, object, string
Jump to line 1797
Structural error at paths./channels.history.get.responses.200.schema.properties.channel_actions_ts.items
should be object
Jump to line 6122
Structural error at paths./channels.replies.get.responses.200.schema.properties.messages.items.items
should be object
Jump to line 7196
Structural error at paths./conversations.history.get.responses.200.schema.properties.channel_actions_ts.items
should be object
Jump to line 9434
Structural error at paths./conversations.open.post.responses.200.schema.properties.channel.items
should be object
Jump to line 10534
Structural error at paths./conversations.replies.get.responses.200.schema.properties.messages.items.items
should be object
Jump to line 10863
Structural error at paths./files.info.get.responses.200.schema.properties.content_html.type
should be equal to one of the allowed values
allowedValues: array, boolean, integer, number, object, string
Jump to line 12189
Structural error at paths./groups.history.get.responses.200.schema.properties.channel_actions_ts.items
should be object
Jump to line 13591
Structural error at paths./im.history.get.responses.200.schema.properties.channel_actions_ts.items
should be object
Jump to line 14909
Structural error at paths./im.replies.get.responses.200.schema.properties.messages.items.items
should be object
Jump to line 15375
Structural error at paths./mpim.history.get.responses.200.schema.properties.channel_actions_ts.items
should be object
Jump to line 15791
Structural error at paths./mpim.replies.get.responses.200.schema.properties.messages.items.items
should be object
Jump to line 16183
Structural error at paths./pins.list.get.responses.200.schema.items
should be object
Jump to line 16738
Semantic error at paths./pins.list.get.responses.200.schema.items.0.properties.items.items
`items` must be an object
Jump to line 16742
Structural error at paths./reactions.get.get.responses.200.schema.items
should be object
Jump to line 17088
Structural error at paths./reactions.list.get.responses.200.schema.properties.items.items.items
should be object
Jump to line 17300
Structural error at paths./stars.list.get.responses.200.schema.properties.items.items.items
should be object
Jump to line 18352
Structural error at paths./users.identity.get.responses.200.schema.items
should be object
Jump to line 20426
 

Trying to use this project to generate a client library with the provided spec and a lot of schemas aren't translated into code.

is this something that can be fixed?

cc @Roach @episod

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant