mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 19:33: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)
|
creationContentBytes, err := json.Marshal(r.CreationContent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &util.JSONResponse{
|
return &util.JSONResponse{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue