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

Fixed Swagger spec #6253

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fixed Swagger spec #6253

wants to merge 2 commits into from

Conversation

ItalyPaleAle
Copy link

In the Swagger spec, the operationId Conversations_GetConversationMembers was defined twice, and that caused an issue with the Swagger CLI's validation. One of the two instances should have been Conversations_GetConversationMember instead.

In the Swagger spec, the operationId `Conversations_GetConversationMembers` was defined twice, and that caused an issue with the Swagger CLI's validation. One of the two instances should have been `Conversations_GetConversationMember` instead.
Adding `"x-nullable": true` to date fields and `"x-omitempty": true` to arrays to ensure that the resulting JSON doesn't include empty dates and empty arrays are not rendered as "null" when using go-swagger to generate a client
@ItalyPaleAle
Copy link
Author

I made a second commit that also added:

  • "x-nullable": true to all date fields
  • "x-omitempty": true to all arrays

When generating a client with go-swagger, these options are required to ensure that zero dates or empty arrays are not included in the resulting JSON.

Not only including them would be a mistake, but they actually crash the Bot Framework Emulator app.

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

Successfully merging this pull request may close these issues.

1 participant