{
  "$id": "https://curveballjs.org/schemas/a12nserver/app-new-form.json",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "additionalProperties": false,
  "description": "This is the request body used by the HTML form submission for creating new apps",
  "properties": {
    "allowedGrantTypes": {
      "type": "string"
    },
    "clientId": {
      "type": "string"
    },
    "nickname": {
      "minLength": 3,
      "type": "string"
    },
    "redirectUris": {
      "type": "string"
    },
    "requirePkce": {
      "type": "string"
    },
    "url": {
      "oneOf": [
        {
          "description": "URL to the application.",
          "format": "uri",
          "type": "string"
        },
        {
          "maxLength": 0,
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "nickname",
    "url"
  ],
  "type": "object"
}