Skip to main content

Esta versión de GitHub Enterprise Server se discontinuará el 2026-08-25. No se admiten versiones discontinuas. No se realizarán lanzamientos de patch, ni siquiera para problemas de seguridad críticos. Para mejorar el rendimiento, mejorar la seguridad y las nuevas características de GitHub Enterprise Server, consulte Información general del proceso de actualización. Para obtener ayuda con la actualización, GitHub Soporte técnico empresarial.

Documentación de referencia para los tipos de esquema GraphQL en la categoría Licencias.

Queries

license

Query

Look up an open source license by its key.

Tipo: License

Argumentos para license

NombreDescripción

key (String!)

The license's downcased SPDX ID.

licenses

Query

Return a list of known open source licenses.

Tipo: [License]!

Objects

License

Object

A repository's open source license.

License Implementa

Campos para License

NombreDescripción

body (String!)

The full text of the license.

conditions ([LicenseRule]!)

The conditions set by the license.

description (String)

A human-readable description of the license.

featured (Boolean!)

Whether the license should be featured.

hidden (Boolean!)

Whether the license should be displayed in license pickers.

id (ID!)

The Node ID of the License object.

implementation (String)

Instructions on how to implement the license.

key (String!)

The lowercased SPDX ID of the license.

limitations ([LicenseRule]!)

The limitations set by the license.

name (String!)

The license full name specified by https://spdx.org/licenses.

nickname (String)

Customary short name if applicable (e.g, GPLv3).

permissions ([LicenseRule]!)

The permissions set by the license.

pseudoLicense (Boolean!)

Whether the license is a pseudo-license placeholder (e.g., other, no-license).

spdxId (String)

Short identifier specified by https://spdx.org/licenses.

url (URI)

URL to the license on https://choosealicense.com.

LicenseRule

Object

Describes a License's conditions, permissions, and limitations.

Campos para LicenseRule

NombreDescripción

description (String!)

A description of the rule.

key (String!)

The machine-readable rule key.

label (String!)

The human-readable rule label.