User (Resource Owner) Schema

📌 Info

JSON Schema Draft 07

{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://www.ssofy.com/schema/user.json",
    "type": "object",
    "required": [
        "id",
        "hash"
    ],
    "properties": {
        "id": {
            "$id": "#/properties/id",
            "title": "User Id",
            "type": "string"
        },
        "hash": {
            "$id": "#/properties/hash",
            "title": "User Hash",
            "type": "string"
        },
        "username": {
            "$id": "#/properties/username",
            "title": "Username",
            "type": [
                "string",
                "null"
            ]
        },
        "email": {
            "$id": "#/properties/email",
            "title": "Email",
            "type": [
                "string",
                "null"
            ],
            "format": "email"
        },
        "email_verified": {
            "$id": "#/properties/email_verified",
            "title": "Email Verified",
            "type": [
                "boolean",
                "null"
            ]
        },
        "phone": {
            "$id": "#/properties/phone",
            "title": "Phone",
            "type": [
                "string",
                "null"
            ],
            "pattern": "^\\+([0-9]+)$",
            "minLength": 10,
            "maxLength": 20
        },
        "phone_verified": {
            "$id": "#/properties/phone_verified",
            "title": "Phone Verified",
            "type": [
                "boolean",
                "null"
            ]
        },
        "name": {
            "$id": "#/properties/name",
            "title": "Name",
            "type": [
                "string",
                "null"
            ]
        },
        "display_name": {
            "$id": "#/properties/display_name",
            "title": "Display Name",
            "type": [
                "string",
                "null"
            ]
        },
        "picture": {
            "$id": "#/properties/picture",
            "title": "Avatar Url",
            "type": [
                "string",
                "null"
            ],
            "format": "uri"
        },
        "profile": {
            "$id": "#/properties/profile",
            "title": "Profile Url",
            "type": [
                "string",
                "null"
            ],
            "format": "uri"
        },
        "given_name": {
            "$id": "#/properties/given_name",
            "title": "Given Name",
            "type": [
                "string",
                "null"
            ]
        },
        "middle_name": {
            "$id": "#/properties/middle_name",
            "title": "Middle Name",
            "type": [
                "string",
                "null"
            ]
        },
        "family_name": {
            "$id": "#/properties/family_name",
            "title": "Family Name",
            "type": [
                "string",
                "null"
            ]
        },
        "nickname": {
            "$id": "#/properties/nickname",
            "title": "Nickname",
            "type": [
                "string",
                "null"
            ]
        },
        "website": {
            "$id": "#/properties/website",
            "title": "Website",
            "type": [
                "string",
                "null"
            ]
        },
        "gender": {
            "$id": "#/properties/gender",
            "title": "Gender",
            "type": [
                "string",
                "null"
            ],
            "enum": ["male", "female"]
        },
        "birthdate": {
            "$id": "#/properties/birthdate",
            "title": "Birthday",
            "type": [
                "string",
                "null"
            ],
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "address": {
            "$id": "#/properties/address",
            "title": "Address",
            "type": [
                "string",
                "null"
            ]
        },
        "location": {
            "$id": "#/properties/location",
            "title": "Location",
            "type": [
                "string",
                "null"
            ],
            "pattern": "^[-+]?(?:[1-8]?\\d(?:\\.\\d+)?|90(?:\\.0+)?),\\s*[-+]?(?:180(?:\\.0+)?|(?:1[0-7]\\d|[1-9]?\\d)(?:\\.\\d+)?)$"
        },
        "zoneinfo": {
            "$id": "#/properties/zoneinfo",
            "title": "Timezone",
            "type": [
                "string",
                "null"
            ],
            "pattern": "^[A-Za-z]+(?:/[A-Za-z_]+)+$"
        },
        "locale": {
            "$id": "#/properties/locale",
            "title": "Locale",
            "type": [
                "string",
                "null"
            ],
            "pattern": "^[A-z]{2}(?:-[A-z]{2})?$"
        },
        "custom_1": {
            "$id": "#/properties/custom_1",
            "title": "Custom 1",
            "type": [
                "string",
                "null"
            ]
        },
        "custom_2": {
            "$id": "#/properties/custom_2",
            "title": "Custom 2",
            "type": [
                "string",
                "null"
            ]
        },
        "custom_3": {
            "$id": "#/properties/custom_3",
            "title": "Custom 3",
            "type": [
                "string",
                "null"
            ]
        },
        "custom_4": {
            "$id": "#/properties/custom_4",
            "title": "Custom 4",
            "type": [
                "string",
                "null"
            ]
        },
        "custom_5": {
            "$id": "#/properties/custom_5",
            "title": "Custom 5",
            "type": [
                "string",
                "null"
            ]
        },
        "custom_6": {
            "$id": "#/properties/custom_6",
            "title": "Custom 6",
            "type": [
                "string",
                "null"
            ]
        },
        "custom_7": {
            "$id": "#/properties/custom_7",
            "title": "Custom 7",
            "type": [
                "string",
                "null"
            ]
        },
        "custom_8": {
            "$id": "#/properties/custom_8",
            "title": "Custom 8",
            "type": [
                "string",
                "null"
            ]
        },
        "custom_9": {
            "$id": "#/properties/custom_9",
            "title": "Custom 9",
            "type": [
                "string",
                "null"
            ]
        },
        "additional": {
            "$id": "#/properties/additional",
            "title": "Additional Information",
            "type": [
                "object",
                "null"
            ],
            "format": "object"
        }
    },
    "additionalProperties": false
}
ssofyKnowledge Base
At our core, we believe that staying up-to-date with the latest trends and advancements in Authentication and related areas is essential. That's why we take great pride in keeping you informed with the latest insights, updates, and news in this rapidly evolving landscape.


Do you need support?
SSOfy is by Cubelet Ltd.
Copyright © 2024 Cubelet Ltd. All rights reserved.