Skip to content

Commit

Permalink
fix: use camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Aug 13, 2024
1 parent 36659b0 commit 3db434a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions schema/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class InitializeParams(BaseModel):
The params send as part of the `initialize` rpc method. The expected result is of type `InitializeResult`.
"""

source_dir: DirectoryPath = Field(
sourceDir: DirectoryPath = Field(
...,
description="An absolute path to the directory that contains the source files",
)
Expand All @@ -68,18 +68,18 @@ class InitializeResult(BaseModel):
# This is used to determine metadata of the conda packages in the source directory.
# =============================================
class CondaMetadataParams(BaseModel):
target_platform: Platform | None = Field(
targetPlatform: Platform | None = Field(
None,
description="The target platform, or the current platform if not specified",
)
channel_base_urls: List[CondaUrl] = Field(None, description="Urls of channels to use for any resolution.")
channelBaseUrls: List[CondaUrl] = Field(None, description="Urls of channels to use for any resolution.")


class CondaPackageMetadata(BaseModel):
name: PackageName = Field(..., description="The name of the package")
version: Version = Field(..., description="The version of the package")
build: NonEmptyStr = Field(..., description="The build string of the package")
build_number: NonNegativeInt = Field(
buildNumber: NonNegativeInt = Field(
0, description="The build number of the package"
)
subdir: Platform = Field(..., description="The subdirectory of the package")
Expand All @@ -90,7 +90,7 @@ class CondaPackageMetadata(BaseModel):
None, description="Additional run constraints that apply to the package"
)
license: NonEmptyStr | None = Field(None, description="The license of the package")
license_family: NonEmptyStr | None = Field(
licenseFamily: NonEmptyStr | None = Field(
None, description="The license family of the package"
)

Expand Down
22 changes: 11 additions & 11 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"CondaMetadataParams": {
"properties": {
"target_platform": {
"targetPlatform": {
"anyOf": [
{
"minLength": 1,
Expand All @@ -33,17 +33,17 @@
],
"default": null,
"description": "The target platform, or the current platform if not specified",
"title": "Target Platform"
"title": "Targetplatform"
},
"channels": {
"channelBaseUrls": {
"default": null,
"description": "Urls of channels to use for any resolution.",
"items": {
"format": "uri",
"minLength": 1,
"type": "string"
},
"title": "Channels",
"title": "Channelbaseurls",
"type": "array"
}
},
Expand Down Expand Up @@ -86,11 +86,11 @@
"title": "Build",
"type": "string"
},
"build_number": {
"buildNumber": {
"default": 0,
"description": "The build number of the package",
"minimum": 0,
"title": "Build Number",
"title": "Buildnumber",
"type": "integer"
},
"subdir": {
Expand Down Expand Up @@ -147,7 +147,7 @@
"description": "The license of the package",
"title": "License"
},
"license_family": {
"licenseFamily": {
"anyOf": [
{
"minLength": 1,
Expand All @@ -159,7 +159,7 @@
],
"default": null,
"description": "The license family of the package",
"title": "License Family"
"title": "Licensefamily"
}
},
"required": [
Expand All @@ -179,10 +179,10 @@
"InitializeParams": {
"description": "The params send as part of the `initialize` rpc method. The expected result is of type `InitializeResult`.",
"properties": {
"source_dir": {
"sourceDir": {
"description": "An absolute path to the directory that contains the source files",
"format": "directory-path",
"title": "Source Dir",
"title": "Sourcedir",
"type": "string"
},
"capabilities": {
Expand All @@ -195,7 +195,7 @@
}
},
"required": [
"source_dir",
"sourceDir",
"capabilities"
],
"title": "InitializeParams",
Expand Down

0 comments on commit 3db434a

Please sign in to comment.