Apache Shiro · JSON Structure

Apache Shiro User Request Structure

Request to create a user

Type: object Properties: 4 Required: 2
AuthenticationAuthorizationCryptographyJavaSecurityApacheOpen Source

UserRequest is a JSON Structure definition published by Apache Shiro, describing 4 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

username password email roles

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shiro/refs/heads/main/json-structure/apache-shiro-user-request-structure.json",
  "description": "Request to create a user",
  "type": "object",
  "properties": {
    "username": {
      "type": "string"
    },
    "password": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "username",
    "password"
  ],
  "name": "UserRequest"
}