mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Comment the validation of defined creation_content fields
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
7f9685fa0c
commit
0830ea7037
|
|
@ -98,6 +98,10 @@ func (r createRoomRequest) Validate() *util.JSONResponse {
|
|||
}
|
||||
}
|
||||
|
||||
// Validate creation_content fields defined in the spec by marshalling the
|
||||
// creation_content map into bytes and then unmarshalling the bytes into
|
||||
// common.CreateContent.
|
||||
|
||||
creationContentBytes, err := json.Marshal(r.CreationContent)
|
||||
if err != nil {
|
||||
return &util.JSONResponse{
|
||||
|
|
|
|||
Loading…
Reference in a new issue