{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "CreateRepoOption", "description": "CreateRepoOption options when creating repository", "type": "object", "required": [ "name" ], "properties": { "auto_init": { "description": "Whether the repository should be auto-initialized?", "type": "boolean", "x-go-name": "AutoInit" }, "default_branch": { "description": "DefaultBranch of the repository (used when initializes and in template)", "type": "string", "x-go-name": "DefaultBranch" }, "description": { "description": "Description of the repository to create", "type": "string", "x-go-name": "Description" }, "gitignores": { "description": "Gitignores to use", "type": "string", "x-go-name": "Gitignores" }, "issue_labels": { "description": "Label-Set to use", "type": "string", "x-go-name": "IssueLabels" }, "license": { "description": "License to use", "type": "string", "x-go-name": "License" }, "name": { "description": "Name of the repository to create", "type": "string", "uniqueItems": true, "x-go-name": "Name" }, "object_format_name": { "description": "ObjectFormatName of the underlying git repository", "type": "string", "enum": [ "sha1", "sha256" ], "x-go-name": "ObjectFormatName" }, "private": { "description": "Whether the repository is private", "type": "boolean", "x-go-name": "Private" }, "readme": { "description": "Readme of the repository to create", "type": "string", "x-go-name": "Readme" }, "template": { "description": "Whether the repository is template", "type": "boolean", "x-go-name": "Template" }, "trust_model": { "description": "TrustModel of the repository", "type": "string", "enum": [ "default", "collaborator", "committer", "collaboratorcommitter" ], "x-go-name": "TrustModel" } }, "x-go-package": "forgejo.org/modules/structs" }