@corvina/oci-validations
v1.0.6
Published
OCI Validation functions
Downloads
125
Readme
OCI Validations
This is a small library that provides a set of validation functions for repository name, tag, and project in OCI.
import { validateRepositoryName, validateTag, validateProject } from '@corvina/oci-validations';
const repositoryName = 'my-repo';
if (!validateRepositoryName(repositoryName)) {
console.error('Invalid repository name');
}
const tag = 'latest';
if (!validateTag(tag)) {
console.error('Invalid tag');
}
const project = 'my-project';
if (!validateProject(project)) {
console.error('Invalid project');
}