Skip to content

Commit

Permalink
More perf rework
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Jan 3, 2025
1 parent 2249c86 commit 152e39e
Show file tree
Hide file tree
Showing 8 changed files with 670 additions and 290 deletions.
230 changes: 132 additions & 98 deletions rfd-api-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RfdRevisionPdf"
"$ref": "#/components/schemas/RfdWithPdf"
}
}
}
Expand Down Expand Up @@ -1976,7 +1976,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RfdWithContent"
"$ref": "#/components/schemas/RfdWithRaw"
}
}
}
Expand Down Expand Up @@ -2212,7 +2212,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RfdRevisionPdf"
"$ref": "#/components/schemas/RfdWithPdf"
}
}
}
Expand Down Expand Up @@ -2256,7 +2256,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RfdWithContent"
"$ref": "#/components/schemas/RfdWithRaw"
}
}
}
Expand Down Expand Up @@ -3677,7 +3677,12 @@
"type": "object",
"properties": {
"content": {
"$ref": "#/components/schemas/RfdRevision"
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/RfdRevision"
}
]
},
"created_at": {
"type": "string",
Expand Down Expand Up @@ -3708,7 +3713,6 @@
}
},
"required": [
"content",
"created_at",
"id",
"rfd_number",
Expand Down Expand Up @@ -4407,80 +4411,6 @@
"updated_at"
]
},
"RfdRevisionPdf": {
"type": "object",
"properties": {
"authors": {
"nullable": true,
"type": "string"
},
"commit": {
"$ref": "#/components/schemas/CommitSha"
},
"committed_at": {
"type": "string",
"format": "date-time"
},
"content": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RfdPdf"
}
},
"content_format": {
"$ref": "#/components/schemas/ContentFormat"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"deleted_at": {
"nullable": true,
"type": "string",
"format": "date-time"
},
"discussion": {
"nullable": true,
"type": "string"
},
"id": {
"$ref": "#/components/schemas/TypedUuidForRfdRevisionId"
},
"labels": {
"nullable": true,
"type": "string"
},
"rfd_id": {
"$ref": "#/components/schemas/TypedUuidForRfdId"
},
"sha": {
"$ref": "#/components/schemas/FileSha"
},
"state": {
"nullable": true,
"type": "string"
},
"title": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"commit",
"committed_at",
"content",
"content_format",
"created_at",
"id",
"rfd_id",
"sha",
"title",
"updated_at"
]
},
"RfdState": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -4537,29 +4467,43 @@
"visibility"
]
},
"RfdWithContent": {
"RfdWithPdf": {
"type": "object",
"properties": {
"authors": {
"nullable": true,
"type": "string"
},
"commit": {
"$ref": "#/components/schemas/CommitSha"
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/CommitSha"
}
]
},
"committed_at": {
"nullable": true,
"type": "string",
"format": "date-time"
},
"content": {
"type": "string"
"type": "array",
"items": {
"$ref": "#/components/schemas/RfdPdf"
}
},
"discussion": {
"nullable": true,
"type": "string"
},
"format": {
"$ref": "#/components/schemas/ContentFormat"
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/ContentFormat"
}
]
},
"id": {
"$ref": "#/components/schemas/TypedUuidForRfdId"
Expand All @@ -4577,28 +4521,106 @@
"format": "int32"
},
"sha": {
"$ref": "#/components/schemas/FileSha"
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/FileSha"
}
]
},
"state": {
"nullable": true,
"type": "string"
},
"title": {
"nullable": true,
"type": "string"
},
"visibility": {
"$ref": "#/components/schemas/Visibility"
}
},
"required": [
"commit",
"committed_at",
"content",
"format",
"id",
"rfd_number",
"sha",
"title",
"visibility"
]
},
"RfdWithRaw": {
"type": "object",
"properties": {
"authors": {
"nullable": true,
"type": "string"
},
"commit": {
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/CommitSha"
}
]
},
"committed_at": {
"nullable": true,
"type": "string",
"format": "date-time"
},
"content": {
"nullable": true,
"type": "string"
},
"discussion": {
"nullable": true,
"type": "string"
},
"format": {
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/ContentFormat"
}
]
},
"id": {
"$ref": "#/components/schemas/TypedUuidForRfdId"
},
"labels": {
"nullable": true,
"type": "string"
},
"link": {
"nullable": true,
"type": "string"
},
"rfd_number": {
"type": "integer",
"format": "int32"
},
"sha": {
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/FileSha"
}
]
},
"state": {
"nullable": true,
"type": "string"
},
"title": {
"nullable": true,
"type": "string"
},
"visibility": {
"$ref": "#/components/schemas/Visibility"
}
},
"required": [
"id",
"rfd_number",
"visibility"
]
},
Expand All @@ -4610,9 +4632,15 @@
"type": "string"
},
"commit": {
"$ref": "#/components/schemas/CommitSha"
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/CommitSha"
}
]
},
"committed_at": {
"nullable": true,
"type": "string",
"format": "date-time"
},
Expand All @@ -4621,7 +4649,12 @@
"type": "string"
},
"format": {
"$ref": "#/components/schemas/ContentFormat"
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/ContentFormat"
}
]
},
"id": {
"$ref": "#/components/schemas/TypedUuidForRfdId"
Expand All @@ -4639,27 +4672,28 @@
"format": "int32"
},
"sha": {
"$ref": "#/components/schemas/FileSha"
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/FileSha"
}
]
},
"state": {
"nullable": true,
"type": "string"
},
"title": {
"nullable": true,
"type": "string"
},
"visibility": {
"$ref": "#/components/schemas/Visibility"
}
},
"required": [
"commit",
"committed_at",
"format",
"id",
"rfd_number",
"sha",
"title",
"visibility"
]
},
Expand Down
Loading

0 comments on commit 152e39e

Please sign in to comment.