Skip to content

Commit 30fdcd1

Browse files
authored
🐛 Fix: rest_description_source typo (#18)
1 parent df022d4 commit 30fdcd1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

codegen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def build():
130130
logger.info(f"Loaded config: {config!r}")
131131

132132
logger.info("Start getting OpenAPI source...")
133-
source = get_source(httpx.URL(config.rest_descrition_source))
133+
source = get_source(httpx.URL(config.rest_description_source))
134134
logger.info(f"Getting schema from {source.uri} succeeded!")
135135

136136
logger.info("Start parsing OpenAPI spec...")

codegen/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
class Config(BaseModel):
8-
rest_descrition_source: str
8+
rest_description_source: str
99
webhook_schema_source: str
1010
class_overrides: Dict[str, str] = {}
1111
field_overrides: Dict[str, str] = {}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ reportPrivateImportUsage = false
5757
reportShadowedImports = false
5858

5959
[tool.codegen]
60-
rest-descrition-source = "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.json"
60+
rest-description-source = "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.json"
6161
webhook-schema-source = "https://unpkg.com/@octokit/webhooks-schemas/schema.json"
6262
client-output = "githubkit/rest/"
6363
webhooks-output = "githubkit/webhooks/models.py"

0 commit comments

Comments
 (0)