Created
March 14, 2017 02:21
-
-
Save nqthqn/223ce10dab2fd5b3713623e36f69852d to your computer and use it in GitHub Desktop.
swagger.json -> Decoder.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Decoder exposing (..) | |
import Json.Decode exposing (Decoder, string, int, float, dict, list, bool, map, value, decodeValue, decodeString) | |
import Json.Decode.Pipeline exposing (decode, required, optional, hardcoded) | |
maybe : String -> Decoder a -> Decoder (Maybe a -> b) -> Decoder b | |
maybe name decoder = | |
optional name (map Just decoder) Nothing | |
lazy : (() -> Decoder a) -> Decoder a | |
lazy thunk = | |
customDecoder value | |
(\js -> decodeValue (thunk ()) js) | |
customDecoder : Decoder a -> (a -> Result String b) -> Decoder b | |
customDecoder decoder toResult = | |
Json.Decode.andThen | |
(\a -> | |
case toResult a of | |
Ok b -> | |
Json.Decode.succeed b | |
Err err -> | |
Json.Decode.fail err | |
) | |
decoder | |
type alias IdlAuth = | |
{ token : Maybe String | |
} | |
type alias IdlAuthRecord = | |
{ email : Maybe String | |
, password : Maybe String | |
} | |
type alias IdlAuthRedactor = | |
{ token : Maybe String | |
} | |
type alias IdlEmpty = | |
{} | |
type alias IdlGame = | |
{ blockCt : Maybe Int | |
, blocked : Maybe String | |
, created : Maybe String | |
, decTrigger : Maybe Int | |
, deleted : Maybe String | |
, description : Maybe String | |
, durDec : Maybe Int | |
, durInc : Maybe Int | |
, duration : Maybe Int | |
, fixImagePath : Maybe String | |
, icon : Maybe String | |
, id : Maybe String | |
, incTrigger : Maybe Int | |
, interval : Maybe Int | |
, name : Maybe String | |
, offset : Maybe Int | |
, slug : Maybe String | |
, trialCt : Maybe Int | |
, updated : Maybe String | |
} | |
type alias IdlGameRequest = | |
{ slug : Maybe String | |
} | |
type alias IdlGameplay = | |
{ created : Maybe String | |
, duration : Maybe Int | |
, gameId : Maybe String | |
, id : Maybe String | |
, updated : Maybe String | |
} | |
type alias IdlGameplays = | |
{ gameplays : Maybe (List IdlGameplaysGameplays) | |
} | |
type alias IdlGameplaysReferral = | |
{ gameIds : Maybe (List IdlGameplaysReferralGameIds) | |
, userId : Maybe String | |
} | |
type alias IdlGimage = | |
{ created : Maybe String | |
, deleted : Maybe String | |
, groupId : Maybe String | |
, id : Maybe String | |
, path : Maybe String | |
, updated : Maybe String | |
, valid : Maybe Bool | |
} | |
type alias IdlGimages = | |
{ gimages : Maybe (List IdlGimagesGimages) | |
} | |
type alias IdlGimagesRange = | |
{ groupId : Maybe String | |
, limit : Maybe Int | |
, valid : Maybe Bool | |
} | |
type alias IdlRole = | |
{ id : Maybe String | |
, name : Maybe String | |
, weight : Maybe Int | |
} | |
type alias IdlUser = | |
{ avatar : Maybe String | |
, blocked : Maybe String | |
, created : Maybe String | |
, deleted : Maybe String | |
, email : Maybe String | |
, firstName : Maybe String | |
, groupID : Maybe String | |
, id : Maybe String | |
, lastLogin : Maybe String | |
, lastName : Maybe String | |
, roles : Maybe (List IdlUserRoles) | |
, updated : Maybe String | |
, username : Maybe String | |
} | |
type alias IdlUserPassReset = | |
{} | |
type alias IdlUserPassResetRecord = | |
{ email : Maybe String | |
, proof : Maybe String | |
} | |
type alias IdlUserRecord = | |
{ avatar : Maybe String | |
, email : Maybe String | |
, firstName : Maybe String | |
, groupID : Maybe String | |
, lastName : Maybe String | |
, password : Maybe String | |
, roles : Maybe (List IdlUserRecordRoles) | |
, username : Maybe String | |
} | |
type alias IdlUserRequest = | |
{ id : Maybe String | |
} | |
type alias IdlUsers = | |
{ users : Maybe (List IdlUsersUsers) | |
} | |
type alias IdlUsersRecord = | |
{ records : Maybe (List IdlUsersRecordRecords) | |
} | |
type alias IdlUsersRequest = | |
{ ids : Maybe (List IdlUsersRequestIds) | |
} | |
decodeIdlAuth : Decoder IdlAuth | |
decodeIdlAuth = | |
decode idlAuth | |
|> maybe "token" string | |
decodeIdlAuthRecord : Decoder IdlAuthRecord | |
decodeIdlAuthRecord = | |
decode idlAuthRecord | |
|> maybe "email" string | |
|> maybe "password" string | |
decodeIdlAuthRedactor : Decoder IdlAuthRedactor | |
decodeIdlAuthRedactor = | |
decode idlAuthRedactor | |
|> maybe "token" string | |
decodeIdlEmpty : Decoder IdlEmpty | |
decodeIdlEmpty = | |
decode idlEmpty | |
decodeIdlGame : Decoder IdlGame | |
decodeIdlGame = | |
decode idlGame | |
|> maybe "blockCt" int | |
|> maybe "blocked" string | |
|> maybe "created" string | |
|> maybe "decTrigger" int | |
|> maybe "deleted" string | |
|> maybe "description" string | |
|> maybe "durDec" int | |
|> maybe "durInc" int | |
|> maybe "duration" int | |
|> maybe "fixImagePath" string | |
|> maybe "icon" string | |
|> maybe "id" string | |
|> maybe "incTrigger" int | |
|> maybe "interval" int | |
|> maybe "name" string | |
|> maybe "offset" int | |
|> maybe "slug" string | |
|> maybe "trialCt" int | |
|> maybe "updated" string | |
decodeIdlGameRequest : Decoder IdlGameRequest | |
decodeIdlGameRequest = | |
decode idlGameRequest | |
|> maybe "slug" string | |
decodeIdlGameplay : Decoder IdlGameplay | |
decodeIdlGameplay = | |
decode idlGameplay | |
|> maybe "created" string | |
|> maybe "duration" int | |
|> maybe "gameId" string | |
|> maybe "id" string | |
|> maybe "updated" string | |
decodeIdlGameplays : Decoder IdlGameplays | |
decodeIdlGameplays = | |
decode idlGameplays | |
|> maybe "gameplays" (list (decodeIdlGameplaysGameplays)) | |
decodeIdlGameplaysReferral : Decoder IdlGameplaysReferral | |
decodeIdlGameplaysReferral = | |
decode idlGameplaysReferral | |
|> maybe "gameIds" (list (decodeIdlGameplaysReferralGameIds)) | |
|> maybe "userId" string | |
decodeIdlGimage : Decoder IdlGimage | |
decodeIdlGimage = | |
decode idlGimage | |
|> maybe "created" string | |
|> maybe "deleted" string | |
|> maybe "groupId" string | |
|> maybe "id" string | |
|> maybe "path" string | |
|> maybe "updated" string | |
|> maybe "valid" bool | |
decodeIdlGimages : Decoder IdlGimages | |
decodeIdlGimages = | |
decode idlGimages | |
|> maybe "gimages" (list (decodeIdlGimagesGimages)) | |
decodeIdlGimagesRange : Decoder IdlGimagesRange | |
decodeIdlGimagesRange = | |
decode idlGimagesRange | |
|> maybe "groupId" string | |
|> maybe "limit" int | |
|> maybe "valid" bool | |
decodeIdlRole : Decoder IdlRole | |
decodeIdlRole = | |
decode idlRole | |
|> maybe "id" string | |
|> maybe "name" string | |
|> maybe "weight" int | |
decodeIdlUser : Decoder IdlUser | |
decodeIdlUser = | |
decode idlUser | |
|> maybe "avatar" string | |
|> maybe "blocked" string | |
|> maybe "created" string | |
|> maybe "deleted" string | |
|> maybe "email" string | |
|> maybe "firstName" string | |
|> maybe "groupID" string | |
|> maybe "id" string | |
|> maybe "lastLogin" string | |
|> maybe "lastName" string | |
|> maybe "roles" (list (decodeIdlUserRoles)) | |
|> maybe "updated" string | |
|> maybe "username" string | |
decodeIdlUserPassReset : Decoder IdlUserPassReset | |
decodeIdlUserPassReset = | |
decode idlUserPassReset | |
decodeIdlUserPassResetRecord : Decoder IdlUserPassResetRecord | |
decodeIdlUserPassResetRecord = | |
decode idlUserPassResetRecord | |
|> maybe "email" string | |
|> maybe "proof" string | |
decodeIdlUserRecord : Decoder IdlUserRecord | |
decodeIdlUserRecord = | |
decode idlUserRecord | |
|> maybe "avatar" string | |
|> maybe "email" string | |
|> maybe "firstName" string | |
|> maybe "groupID" string | |
|> maybe "lastName" string | |
|> maybe "password" string | |
|> maybe "roles" (list (decodeIdlUserRecordRoles)) | |
|> maybe "username" string | |
decodeIdlUserRequest : Decoder IdlUserRequest | |
decodeIdlUserRequest = | |
decode idlUserRequest | |
|> maybe "id" string | |
decodeIdlUsers : Decoder IdlUsers | |
decodeIdlUsers = | |
decode idlUsers | |
|> maybe "users" (list (decodeIdlUsersUsers)) | |
decodeIdlUsersRecord : Decoder IdlUsersRecord | |
decodeIdlUsersRecord = | |
decode idlUsersRecord | |
|> maybe "records" (list (decodeIdlUsersRecordRecords)) | |
decodeIdlUsersRequest : Decoder IdlUsersRequest | |
decodeIdlUsersRequest = | |
decode idlUsersRequest | |
|> maybe "ids" (list (decodeIdlUsersRequestIds)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "CravingControl", | |
"description": "cracon provides ...\n\n Semantics:\n Add{T}(s) ({T}(s)Record) returns {T}(s) // Add / POST\n Ovr{T}(s) ({T}(s)Record) returns {T}(s) // Overwrite / PUT\n Mod{T}(s) ({T}(s)Redef) returns {T}(s) // Modify / PATCH\n Get{T}(s) ({T}(s)Request) returns {T}(s) // Get / GET\n Fnd{T}(s) ({T}(s)Referral) returns {T}(s) // Find / GET\n Spn{T}s ({T}sRange) returns {T}s // Span / GET\n Rmv{T}(s) ({T}(s)Redactor) returns Empty // Remove / DELETE\n Unr{T} ({T}Restorer) returns {T} // Unremove / PATCH", | |
"version": "version not set" | |
}, | |
"schemes": [ | |
"http", | |
"https" | |
], | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"paths": { | |
"/auth": { | |
"post": { | |
"operationId": "AddAuth", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlAuth" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "body", | |
"in": "body", | |
"required": true, | |
"schema": { | |
"$ref": "#/definitions/idlAuthRecord" | |
} | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
}, | |
"/auth/{token}": { | |
"delete": { | |
"summary": "RmvAuth requires \"Header: Authorization\".", | |
"operationId": "RmvAuth", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlEmpty" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "token", | |
"in": "path", | |
"required": true, | |
"type": "string", | |
"format": "string" | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
}, | |
"/game/{slug}": { | |
"get": { | |
"summary": "GetGame requires \"Header: Authorization\".", | |
"operationId": "GetGame", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlGame" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "slug", | |
"in": "path", | |
"required": true, | |
"type": "string", | |
"format": "string" | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
}, | |
"/group/{groupId}/gimages": { | |
"get": { | |
"summary": "SpnGimages requires \"Header: Authorization\".", | |
"operationId": "SpnGimages", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlGimages" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "groupId", | |
"in": "path", | |
"required": true, | |
"type": "string", | |
"format": "uint64" | |
}, | |
{ | |
"name": "valid", | |
"in": "query", | |
"required": false, | |
"type": "boolean" | |
}, | |
{ | |
"name": "limit", | |
"in": "query", | |
"required": false, | |
"type": "integer" | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
}, | |
"/user": { | |
"post": { | |
"summary": "AddUser requires \"Header: Authorization\".", | |
"operationId": "AddUser", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlUser" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "body", | |
"in": "body", | |
"required": true, | |
"schema": { | |
"$ref": "#/definitions/idlUserRecord" | |
} | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
}, | |
"/user/{email}/password_reset": { | |
"post": { | |
"summary": "AddUserPassReset ...", | |
"operationId": "AddUserPassReset", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlUserPassReset" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "email", | |
"in": "path", | |
"required": true, | |
"type": "string", | |
"format": "string" | |
}, | |
{ | |
"name": "body", | |
"in": "body", | |
"required": true, | |
"schema": { | |
"$ref": "#/definitions/idlUserPassResetRecord" | |
} | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
}, | |
"/user/{id}": { | |
"get": { | |
"summary": "GetUser requires \"Header: Authorization\".", | |
"operationId": "GetUser", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlUser" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "path", | |
"required": true, | |
"type": "string", | |
"format": "uint64" | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
}, | |
"/user/{userId}/gameplays": { | |
"get": { | |
"summary": "FndGameplays requires \"Header: Authorization\".", | |
"operationId": "FndGameplays", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlGameplays" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "userId", | |
"in": "path", | |
"required": true, | |
"type": "string", | |
"format": "uint64" | |
}, | |
{ | |
"name": "gameIds", | |
"in": "query", | |
"required": false, | |
"type": "array" | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
}, | |
"/users": { | |
"get": { | |
"summary": "GetUsers requires \"Header: Authorization\".", | |
"operationId": "GetUsers", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlUsers" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "ids", | |
"in": "query", | |
"required": false, | |
"type": "array" | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
}, | |
"post": { | |
"summary": "AddUsers requires \"Header: Authorization\".", | |
"operationId": "AddUsers", | |
"responses": { | |
"200": { | |
"description": "", | |
"schema": { | |
"$ref": "#/definitions/idlUsers" | |
} | |
} | |
}, | |
"parameters": [ | |
{ | |
"name": "body", | |
"in": "body", | |
"required": true, | |
"schema": { | |
"$ref": "#/definitions/idlUsersRecord" | |
} | |
} | |
], | |
"tags": [ | |
"General" | |
] | |
} | |
} | |
}, | |
"definitions": { | |
"idlAuth": { | |
"type": "object", | |
"properties": { | |
"token": { | |
"type": "string", | |
"format": "string" | |
} | |
} | |
}, | |
"idlAuthRecord": { | |
"type": "object", | |
"properties": { | |
"email": { | |
"type": "string", | |
"format": "string" | |
}, | |
"password": { | |
"type": "string", | |
"format": "string" | |
} | |
} | |
}, | |
"idlAuthRedactor": { | |
"type": "object", | |
"properties": { | |
"token": { | |
"type": "string", | |
"format": "string" | |
} | |
} | |
}, | |
"idlEmpty": { | |
"type": "object" | |
}, | |
"idlGame": { | |
"type": "object", | |
"properties": { | |
"blockCt": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"blocked": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"created": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"decTrigger": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"deleted": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"description": { | |
"type": "string", | |
"format": "string" | |
}, | |
"durDec": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"durInc": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"duration": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"fixImagePath": { | |
"type": "string", | |
"format": "string" | |
}, | |
"icon": { | |
"type": "string", | |
"format": "string" | |
}, | |
"id": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"incTrigger": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"interval": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"name": { | |
"type": "string", | |
"format": "string" | |
}, | |
"offset": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"slug": { | |
"type": "string", | |
"format": "string" | |
}, | |
"trialCt": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"updated": { | |
"type": "string", | |
"format": "date-time" | |
} | |
} | |
}, | |
"idlGameRequest": { | |
"type": "object", | |
"properties": { | |
"slug": { | |
"type": "string", | |
"format": "string" | |
} | |
} | |
}, | |
"idlGameplay": { | |
"type": "object", | |
"properties": { | |
"created": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"duration": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"gameId": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"id": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"updated": { | |
"type": "string", | |
"format": "date-time" | |
} | |
} | |
}, | |
"idlGameplays": { | |
"type": "object", | |
"properties": { | |
"gameplays": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/idlGameplay" | |
} | |
} | |
} | |
}, | |
"idlGameplaysReferral": { | |
"type": "object", | |
"properties": { | |
"gameIds": { | |
"type": "array", | |
"items": { | |
"type": "string", | |
"format": "uint64" | |
} | |
}, | |
"userId": { | |
"type": "string", | |
"format": "uint64" | |
} | |
} | |
}, | |
"idlGimage": { | |
"type": "object", | |
"properties": { | |
"created": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"deleted": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"groupId": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"id": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"path": { | |
"type": "string", | |
"format": "string" | |
}, | |
"updated": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"valid": { | |
"type": "boolean", | |
"format": "boolean" | |
} | |
} | |
}, | |
"idlGimages": { | |
"type": "object", | |
"properties": { | |
"gimages": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/idlGimage" | |
} | |
} | |
} | |
}, | |
"idlGimagesRange": { | |
"type": "object", | |
"properties": { | |
"groupId": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"limit": { | |
"type": "integer", | |
"format": "int64" | |
}, | |
"valid": { | |
"type": "boolean", | |
"format": "boolean" | |
} | |
} | |
}, | |
"idlRole": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"name": { | |
"type": "string", | |
"format": "string" | |
}, | |
"weight": { | |
"type": "integer", | |
"format": "int64" | |
} | |
} | |
}, | |
"idlUser": { | |
"type": "object", | |
"properties": { | |
"avatar": { | |
"type": "string", | |
"format": "string" | |
}, | |
"blocked": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"created": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"deleted": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"email": { | |
"type": "string", | |
"format": "string" | |
}, | |
"firstName": { | |
"type": "string", | |
"format": "string" | |
}, | |
"groupID": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"id": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"lastLogin": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"lastName": { | |
"type": "string", | |
"format": "string" | |
}, | |
"roles": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/idlRole" | |
} | |
}, | |
"updated": { | |
"type": "string", | |
"format": "date-time" | |
}, | |
"username": { | |
"type": "string", | |
"format": "string" | |
} | |
} | |
}, | |
"idlUserPassReset": { | |
"type": "object" | |
}, | |
"idlUserPassResetRecord": { | |
"type": "object", | |
"properties": { | |
"email": { | |
"type": "string", | |
"format": "string" | |
}, | |
"proof": { | |
"type": "string", | |
"format": "string" | |
} | |
} | |
}, | |
"idlUserRecord": { | |
"type": "object", | |
"properties": { | |
"avatar": { | |
"type": "string", | |
"format": "string" | |
}, | |
"email": { | |
"type": "string", | |
"format": "string" | |
}, | |
"firstName": { | |
"type": "string", | |
"format": "string" | |
}, | |
"groupID": { | |
"type": "string", | |
"format": "uint64" | |
}, | |
"lastName": { | |
"type": "string", | |
"format": "string" | |
}, | |
"password": { | |
"type": "string", | |
"format": "string" | |
}, | |
"roles": { | |
"type": "array", | |
"items": { | |
"type": "string", | |
"format": "uint64" | |
} | |
}, | |
"username": { | |
"type": "string", | |
"format": "string" | |
} | |
} | |
}, | |
"idlUserRequest": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string", | |
"format": "uint64" | |
} | |
} | |
}, | |
"idlUsers": { | |
"type": "object", | |
"properties": { | |
"users": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/idlUser" | |
} | |
} | |
} | |
}, | |
"idlUsersRecord": { | |
"type": "object", | |
"properties": { | |
"records": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/idlUserRecord" | |
} | |
} | |
} | |
}, | |
"idlUsersRequest": { | |
"type": "object", | |
"properties": { | |
"ids": { | |
"type": "array", | |
"items": { | |
"type": "string", | |
"format": "uint64" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment