Skip to content

GitHub: Licenses schemas

3 GitHub schemas with complete fields and constraints.

← Licenses operations · All schemas

Get a license — response body

FieldTypePresenceDescription and constraints
$objectRootLicense
bodystringRequired within parent
conditionsarrayRequired within parent
conditions[]stringEach item
descriptionstringRequired within parent
featuredbooleanRequired within parent
html_urlstringRequired within parentFormat: uri
implementationstringRequired within parent
keystringRequired within parent
limitationsarrayRequired within parent
limitations[]stringEach item
namestringRequired within parent
node_idstringRequired within parent
permissionsarrayRequired within parent
permissions[]stringEach item
spdx_idJSONRequired within parent
spdx_id (anyOf 1)stringAlternative
spdx_id (anyOf 2)nullAlternative
urlJSONRequired within parent
url (anyOf 1)stringAlternativeFormat: uri
url (anyOf 2)nullAlternative

Get all commonly used licenses — response body — item

FieldTypePresenceDescription and constraints
$objectRootLicense Simple
html_urlstringOptionalFormat: uri
keystringRequired within parent
namestringRequired within parent
node_idstringRequired within parent
spdx_idJSONRequired within parent
spdx_id (anyOf 1)stringAlternative
spdx_id (anyOf 2)nullAlternative
urlJSONRequired within parent
url (anyOf 1)stringAlternativeFormat: uri
url (anyOf 2)nullAlternative

Get the license for a repository — response body

FieldTypePresenceDescription and constraints
$objectRootLicense Content
_linksobjectRequired within parent
_links.gitJSONRequired within parent
_links.git (anyOf 1)stringAlternativeFormat: uri
_links.git (anyOf 2)nullAlternative
_links.htmlJSONRequired within parent
_links.html (anyOf 1)stringAlternativeFormat: uri
_links.html (anyOf 2)nullAlternative
_links.selfstringRequired within parentFormat: uri
contentstringRequired within parent
download_urlJSONRequired within parent
download_url (anyOf 1)stringAlternativeFormat: uri
download_url (anyOf 2)nullAlternative
encodingstringRequired within parent
git_urlJSONRequired within parent
git_url (anyOf 1)stringAlternativeFormat: uri
git_url (anyOf 2)nullAlternative
html_urlJSONRequired within parent
html_url (anyOf 1)stringAlternativeFormat: uri
html_url (anyOf 2)nullAlternative
licenseModelRequired within parentExpand Create a fork — response body — license
namestringRequired within parent
pathstringRequired within parent
shastringRequired within parent
sizeJSONRequired within parent
size (anyOf 1)integerAlternative
size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
typestringRequired within parent
urlstringRequired within parentFormat: uri

Referenced models: Create a fork — response body — license

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.