diff --git a/schema/model.py b/schema/model.py index ce36306..03eaa80 100644 --- a/schema/model.py +++ b/schema/model.py @@ -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", ) @@ -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") @@ -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" ) diff --git a/schema/schema.json b/schema/schema.json index 605f883..f08b34a 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -21,7 +21,7 @@ }, "CondaMetadataParams": { "properties": { - "target_platform": { + "targetPlatform": { "anyOf": [ { "minLength": 1, @@ -33,9 +33,9 @@ ], "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": { @@ -43,7 +43,7 @@ "minLength": 1, "type": "string" }, - "title": "Channels", + "title": "Channelbaseurls", "type": "array" } }, @@ -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": { @@ -147,7 +147,7 @@ "description": "The license of the package", "title": "License" }, - "license_family": { + "licenseFamily": { "anyOf": [ { "minLength": 1, @@ -159,7 +159,7 @@ ], "default": null, "description": "The license family of the package", - "title": "License Family" + "title": "Licensefamily" } }, "required": [ @@ -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": { @@ -195,7 +195,7 @@ } }, "required": [ - "source_dir", + "sourceDir", "capabilities" ], "title": "InitializeParams",