Skip to content

Commit

Permalink
Remove schemas for CachedDataset, MemoryDataset, and LambdaDataset si…
Browse files Browse the repository at this point in the history
…nce they remain in Kedro core

Signed-off-by: Chris Schopp <[email protected]>
  • Loading branch information
chrisschopp committed Dec 11, 2024
1 parent cd694ae commit b84d1a1
Showing 1 changed file with 1 addition and 83 deletions.
84 changes: 1 addition & 83 deletions kedro-datasets/static/jsonschema/kedro-catalog-0.19.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
"type": {
"type": "string",
"enum": [
"CachedDataset",
"IncrementalDataset",
"MemoryDataset",
"LambdaDataset",
"partitions.IncrementalDataset",
"partitions.PartitionedDataset",
"api.APIDataset",
"biosequence.BioSequenceDataset",
Expand Down Expand Up @@ -51,30 +48,6 @@
}
},
"allOf": [
{
"if": {
"properties": {
"type": {
"const": "CachedDataset"
}
}
},
"then": {
"required": [
"dataset"
],
"properties": {
"dataset": {
"pattern": ".*",
"description": "A Kedro Dataset object or a dictionary to cache."
},
"copy_mode": {
"type": "string",
"description": "The copy mode used to copy the data. Possible\nvalues are: \"deepcopy\", \"copy\" and \"assign\". If not\nprovided, it is inferred based on the data type."
}
}
}
},
{
"if": {
"properties": {
Expand Down Expand Up @@ -127,61 +100,6 @@
}
}
},
{
"if": {
"properties": {
"type": {
"const": "MemoryDataset"
}
}
},
"then": {
"required": [],
"properties": {
"data": {
"pattern": ".*",
"description": "Python object containing the data."
},
"copy_mode": {
"type": "string",
"description": "The copy mode used to copy the data. Possible\nvalues are: \"deepcopy\", \"copy\" and \"assign\". If not\nprovided, it is inferred based on the data type."
}
}
}
},
{
"if": {
"properties": {
"type": {
"const": "LambdaDataset"
}
}
},
"then": {
"required": [
"load",
"save"
],
"properties": {
"load": {
"pattern": ".*",
"description": "Method to load data from a data set."
},
"save": {
"pattern": ".*",
"description": "Method to save data to a data set."
},
"exists": {
"pattern": ".*",
"description": "Method to check whether output data already exists."
},
"release": {
"pattern": ".*",
"description": "Method to release any cached information."
}
}
}
},
{
"if": {
"properties": {
Expand Down

0 comments on commit b84d1a1

Please sign in to comment.