Skip to content

Commit 20ddfe6

Browse files
committed
chore: removing unused code
1 parent 8ad4366 commit 20ddfe6

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

pkg/js/validator/validate-store.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -725,36 +725,6 @@ const validateStore: SchemaValidateFunction = function (
725725
return validateTestTypes(store, this.jsonModel, ctx.instancePath);
726726
};
727727

728-
// YAML validation using ajv
729-
export function YamlTuplesValidator(): ValidateFunction {
730-
return new Ajv({
731-
allErrors: true,
732-
verbose: true,
733-
passContext: true,
734-
$data: true,
735-
})
736-
.addFormat("user", {
737-
validate: Validate.user,
738-
})
739-
.addFormat("relation", {
740-
validate: Validate.relation,
741-
})
742-
.addFormat("object", {
743-
validate: Validate.object,
744-
})
745-
.addFormat("condition", {
746-
validate: Validate.relationshipCondition,
747-
})
748-
.addKeyword({
749-
keyword: "valid_tuple",
750-
type: "object",
751-
schema: false,
752-
errors: true,
753-
validate: validateTuple,
754-
})
755-
.compile(OPENFGA_TUPLES_SCHEMA);
756-
}
757-
758728
// YAML tuple validation
759729
const OPENFGA_TUPLES_SCHEMA: Schema = {
760730
type: "array",

0 commit comments

Comments
 (0)