Skip to content

Instantly share code, notes, and snippets.

@KeironO
Created August 3, 2020 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KeironO/cbc9631cf132f2e8bde8e53e984a8a99 to your computer and use it in GitHub Desktop.
Save KeironO/cbc9631cf132f2e8bde8e53e984a8a99 to your computer and use it in GitHub Desktop.
Test
{
"components": {
"schemas": {
"NewUserAccount": {
"properties": {
"access_control": {
"enum": [
"ADM",
"MOD",
"PRI",
"VIE",
"BOT"
],
"maxLength": 3,
"nullable": true
},
"account_type": {
"enum": [
"ADM",
"BIO",
"PRO",
"BOT"
],
"maxLength": 3
},
"email": {
"maxLength": 320,
"type": "string"
},
"first_name": {
"maxLength": 128,
"type": "string"
},
"last_name": {
"maxLength": 128,
"type": "string"
},
"middle_name": {
"maxLength": 128,
"nullable": true,
"type": "string"
},
"password": {
"type": "string"
},
"site_id": {
"format": "int32",
"nullable": true,
"type": "integer"
},
"title": {
"enum": [
"MRS",
"MISS",
"MS",
"MR",
"MX",
"PROF",
"DR"
],
"maxLength": 4
}
},
"required": [
"account_type",
"email",
"first_name",
"last_name",
"password",
"title"
],
"type": "object"
}
}
},
"info": {
"title": "LImBuS API Documentation",
"version": "20.08"
},
"openapi": "3.0.2",
"paths": {
"/api/auth": {},
"/api/auth/user/new": {
"post": {
"description": "Submit a new user account",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewUserAccount"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment