protocol JSON schema: required fields of ConversationAccount don't match written specification #6541
Labels
Bot Services
Required for internal Azure reporting. Do not remove. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
commit 0fa7c51 of the JSON schema (itself unversioned as far as I'm aware)
Describe the bug
The JSON schema doesn't match the written specification at https://github.com/microsoft/botframework-sdk/blob/main/specs/botframework-activity/botframework-activity.md#conversation.
ConversationAccount
requries all of id, name, isGroup and conversationType in the JSON schema.Whereas the written specification explicitly states:
name being a required field doesn't match "The conversation.name field is optional", for a start.
To Reproduce
Steps to reproduce the behavior:
This can be reproduced using the emulator, see microsoft/BotFramework-Emulator#2397
Expected behavior
Only id field in ConversationAccount should be required in the JSON Schema definition.
The following JSON should be a valid ConversationAccount:
The JSON schema should be able to validate activities that meet the specification generated by trusted/well behaved clients such as the emulator.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Tracking Status
Dotnet SDK TODO
Javascript SDK TODO
Python SDK TODO
Java SDK TODO
Samples TODO
Docs TODO
Tools TODO
The text was updated successfully, but these errors were encountered: