Forgejo · Schema

CreateKeyOption

CreateKeyOption options when creating a key

GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests

Properties

Name Type Description
key string An armored SSH key to add
read_only boolean Describe if the key has only read access or read/write
title string Title of the key to add
View JSON Schema on GitHub

JSON Schema

createkeyoption.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "CreateKeyOption",
  "description": "CreateKeyOption options when creating a key",
  "type": "object",
  "required": [
    "title",
    "key"
  ],
  "properties": {
    "key": {
      "description": "An armored SSH key to add",
      "type": "string",
      "uniqueItems": true,
      "x-go-name": "Key"
    },
    "read_only": {
      "description": "Describe if the key has only read access or read/write",
      "type": "boolean",
      "x-go-name": "ReadOnly"
    },
    "title": {
      "description": "Title of the key to add",
      "type": "string",
      "uniqueItems": true,
      "x-go-name": "Title"
    }
  },
  "x-go-package": "forgejo.org/modules/structs"
}