mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 08:53:09 +02:00
Better deninition
This commit is contained in:
parent
eed9266ecb
commit
9d75ec799b
2 changed files with 14 additions and 0 deletions
|
@ -4,6 +4,7 @@ import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { getUser } from '../../../common/getters';
|
import { getUser } from '../../../common/getters';
|
||||||
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
||||||
|
import { types, bool } from '../../../../../misc/schema';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -31,6 +32,12 @@ export const meta = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
res: {
|
||||||
|
type: types.object,
|
||||||
|
optional: bool.false, nullable: bool.false,
|
||||||
|
ref: 'UserGroup',
|
||||||
|
},
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchGroup: {
|
noSuchGroup: {
|
||||||
message: 'No such group.',
|
message: 'No such group.',
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { ID } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { UserGroups } from '../../../../../models';
|
import { UserGroups } from '../../../../../models';
|
||||||
|
import { types, bool } from '../../../../../misc/schema';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -34,6 +35,12 @@ export const meta = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
res: {
|
||||||
|
type: types.object,
|
||||||
|
optional: bool.false, nullable: bool.false,
|
||||||
|
ref: 'UserGroup',
|
||||||
|
},
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchGroup: {
|
noSuchGroup: {
|
||||||
message: 'No such group.',
|
message: 'No such group.',
|
||||||
|
|
Loading…
Reference in a new issue