0.2.2 • Published 2 months ago

@specverse/validation-tools v0.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

SpecVerse Validation Tools

Validation tools for SpecVerse specifications, profiles, and manifests.

Installation

npm install -g @specverse/validation-tools

Usage

Validating SpecVerse Specifications

specverse-validator -s path/to/schema.json path/to/spec.yaml

Validating SpecVerse Profiles

specverse-profile-validator -s path/to/schema.json path/to/profile.yaml

Validating SpecVerse Manifests

specverse-manifest-validator -s path/to/schema.json path/to/manifest.yaml

Checking Imports

specverse-import-checker -b base/path path/to/spec.yaml

API Usage

const { SpecVerseValidator, ProfileValidator, ManifestValidator } = require('@specverse/validation-tools');

// Validate a specification
const specValidator = new SpecVerseValidator('/path/to/schema.json');
const result = specValidator.validateFile('/path/to/spec.yaml');
if (result.valid) {
  console.log('Specification is valid!');
} else {
  console.error('Validation failed:', result.message);
}

License

MIT

0.2.2

2 months ago

0.2.1

2 months ago

0.2.0

2 months ago

0.1.3

2 months ago

0.1.2

2 months ago

0.1.0

2 months ago