Skip to content

Commit 1070614

Browse files
Update OpenAPI 3.0 Descriptions
1 parent fcf38b8 commit 1070614

24 files changed

+8232
-12060
lines changed

descriptions/api.github.com/api.github.com.2022-11-28.json

Lines changed: 168 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -16040,8 +16040,7 @@
1604016040
"name": "Epic",
1604116041
"description": "An issue type for a multi-week tracking of work",
1604216042
"is_enabled": true,
16043-
"color": "green",
16044-
"is_private": true
16043+
"color": "green"
1604516044
}
1604616045
}
1604716046
}
@@ -16112,8 +16111,7 @@
1611216111
"name": "Epic",
1611316112
"description": "An issue type for a multi-week tracking of work",
1611416113
"is_enabled": true,
16115-
"color": "green",
16116-
"is_private": true
16114+
"color": "green"
1611716115
}
1611816116
}
1611916117
}
@@ -108599,6 +108597,128 @@
108599108597
}
108600108598
}
108601108599
},
108600+
"repository-rule-file-path-restriction": {
108601+
"title": "file_path_restriction",
108602+
"description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph.",
108603+
"type": "object",
108604+
"required": [
108605+
"type"
108606+
],
108607+
"properties": {
108608+
"type": {
108609+
"type": "string",
108610+
"enum": [
108611+
"file_path_restriction"
108612+
]
108613+
},
108614+
"parameters": {
108615+
"type": "object",
108616+
"properties": {
108617+
"restricted_file_paths": {
108618+
"type": "array",
108619+
"description": "The file paths that are restricted from being pushed to the commit graph.",
108620+
"items": {
108621+
"type": "string"
108622+
}
108623+
}
108624+
},
108625+
"required": [
108626+
"restricted_file_paths"
108627+
]
108628+
}
108629+
}
108630+
},
108631+
"repository-rule-max-file-path-length": {
108632+
"title": "max_file_path_length",
108633+
"description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.",
108634+
"type": "object",
108635+
"required": [
108636+
"type"
108637+
],
108638+
"properties": {
108639+
"type": {
108640+
"type": "string",
108641+
"enum": [
108642+
"max_file_path_length"
108643+
]
108644+
},
108645+
"parameters": {
108646+
"type": "object",
108647+
"properties": {
108648+
"max_file_path_length": {
108649+
"type": "integer",
108650+
"description": "The maximum amount of characters allowed in file paths",
108651+
"minimum": 1,
108652+
"maximum": 256
108653+
}
108654+
},
108655+
"required": [
108656+
"max_file_path_length"
108657+
]
108658+
}
108659+
}
108660+
},
108661+
"repository-rule-file-extension-restriction": {
108662+
"title": "file_extension_restriction",
108663+
"description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
108664+
"type": "object",
108665+
"required": [
108666+
"type"
108667+
],
108668+
"properties": {
108669+
"type": {
108670+
"type": "string",
108671+
"enum": [
108672+
"file_extension_restriction"
108673+
]
108674+
},
108675+
"parameters": {
108676+
"type": "object",
108677+
"properties": {
108678+
"restricted_file_extensions": {
108679+
"type": "array",
108680+
"description": "The file extensions that are restricted from being pushed to the commit graph.",
108681+
"items": {
108682+
"type": "string"
108683+
}
108684+
}
108685+
},
108686+
"required": [
108687+
"restricted_file_extensions"
108688+
]
108689+
}
108690+
}
108691+
},
108692+
"repository-rule-max-file-size": {
108693+
"title": "max_file_size",
108694+
"description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph.",
108695+
"type": "object",
108696+
"required": [
108697+
"type"
108698+
],
108699+
"properties": {
108700+
"type": {
108701+
"type": "string",
108702+
"enum": [
108703+
"max_file_size"
108704+
]
108705+
},
108706+
"parameters": {
108707+
"type": "object",
108708+
"properties": {
108709+
"max_file_size": {
108710+
"type": "integer",
108711+
"description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
108712+
"minimum": 1,
108713+
"maximum": 100
108714+
}
108715+
},
108716+
"required": [
108717+
"max_file_size"
108718+
]
108719+
}
108720+
}
108721+
},
108602108722
"repository-rule-params-restricted-commits": {
108603108723
"title": "RestrictedCommits",
108604108724
"description": "Restricted commit",
@@ -108798,126 +108918,16 @@
108798108918
"$ref": "#/components/schemas/repository-rule-tag-name-pattern"
108799108919
},
108800108920
{
108801-
"title": "file_path_restriction",
108802-
"description": "Prevent commits that include changes in specified file paths from being pushed to the commit graph.",
108803-
"type": "object",
108804-
"required": [
108805-
"type"
108806-
],
108807-
"properties": {
108808-
"type": {
108809-
"type": "string",
108810-
"enum": [
108811-
"file_path_restriction"
108812-
]
108813-
},
108814-
"parameters": {
108815-
"type": "object",
108816-
"properties": {
108817-
"restricted_file_paths": {
108818-
"type": "array",
108819-
"description": "The file paths that are restricted from being pushed to the commit graph.",
108820-
"items": {
108821-
"type": "string"
108822-
}
108823-
}
108824-
},
108825-
"required": [
108826-
"restricted_file_paths"
108827-
]
108828-
}
108829-
}
108921+
"$ref": "#/components/schemas/repository-rule-file-path-restriction"
108830108922
},
108831108923
{
108832-
"title": "max_file_path_length",
108833-
"description": "Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.",
108834-
"type": "object",
108835-
"required": [
108836-
"type"
108837-
],
108838-
"properties": {
108839-
"type": {
108840-
"type": "string",
108841-
"enum": [
108842-
"max_file_path_length"
108843-
]
108844-
},
108845-
"parameters": {
108846-
"type": "object",
108847-
"properties": {
108848-
"max_file_path_length": {
108849-
"type": "integer",
108850-
"description": "The maximum amount of characters allowed in file paths",
108851-
"minimum": 1,
108852-
"maximum": 256
108853-
}
108854-
},
108855-
"required": [
108856-
"max_file_path_length"
108857-
]
108858-
}
108859-
}
108924+
"$ref": "#/components/schemas/repository-rule-max-file-path-length"
108860108925
},
108861108926
{
108862-
"title": "file_extension_restriction",
108863-
"description": "Prevent commits that include files with specified file extensions from being pushed to the commit graph.",
108864-
"type": "object",
108865-
"required": [
108866-
"type"
108867-
],
108868-
"properties": {
108869-
"type": {
108870-
"type": "string",
108871-
"enum": [
108872-
"file_extension_restriction"
108873-
]
108874-
},
108875-
"parameters": {
108876-
"type": "object",
108877-
"properties": {
108878-
"restricted_file_extensions": {
108879-
"type": "array",
108880-
"description": "The file extensions that are restricted from being pushed to the commit graph.",
108881-
"items": {
108882-
"type": "string"
108883-
}
108884-
}
108885-
},
108886-
"required": [
108887-
"restricted_file_extensions"
108888-
]
108889-
}
108890-
}
108927+
"$ref": "#/components/schemas/repository-rule-file-extension-restriction"
108891108928
},
108892108929
{
108893-
"title": "max_file_size",
108894-
"description": "Prevent commits that exceed a specified file size limit from being pushed to the commit graph.",
108895-
"type": "object",
108896-
"required": [
108897-
"type"
108898-
],
108899-
"properties": {
108900-
"type": {
108901-
"type": "string",
108902-
"enum": [
108903-
"max_file_size"
108904-
]
108905-
},
108906-
"parameters": {
108907-
"type": "object",
108908-
"properties": {
108909-
"max_file_size": {
108910-
"type": "integer",
108911-
"description": "The maximum file size allowed in megabytes. This limit does not apply to Git Large File Storage (Git LFS).",
108912-
"minimum": 1,
108913-
"maximum": 100
108914-
}
108915-
},
108916-
"required": [
108917-
"max_file_size"
108918-
]
108919-
}
108920-
}
108930+
"$ref": "#/components/schemas/repository-rule-max-file-size"
108921108931
},
108922108932
{
108923108933
"$ref": "#/components/schemas/repository-rule-workflows"
@@ -123958,6 +123968,46 @@
123958123968
}
123959123969
]
123960123970
},
123971+
{
123972+
"allOf": [
123973+
{
123974+
"$ref": "#/components/schemas/repository-rule-file-path-restriction"
123975+
},
123976+
{
123977+
"$ref": "#/components/schemas/repository-rule-ruleset-info"
123978+
}
123979+
]
123980+
},
123981+
{
123982+
"allOf": [
123983+
{
123984+
"$ref": "#/components/schemas/repository-rule-max-file-path-length"
123985+
},
123986+
{
123987+
"$ref": "#/components/schemas/repository-rule-ruleset-info"
123988+
}
123989+
]
123990+
},
123991+
{
123992+
"allOf": [
123993+
{
123994+
"$ref": "#/components/schemas/repository-rule-file-extension-restriction"
123995+
},
123996+
{
123997+
"$ref": "#/components/schemas/repository-rule-ruleset-info"
123998+
}
123999+
]
124000+
},
124001+
{
124002+
"allOf": [
124003+
{
124004+
"$ref": "#/components/schemas/repository-rule-max-file-size"
124005+
},
124006+
{
124007+
"$ref": "#/components/schemas/repository-rule-ruleset-info"
124008+
}
124009+
]
124010+
},
123961124011
{
123962124012
"allOf": [
123963124013
{

0 commit comments

Comments
 (0)