@forge/manifest
TypeScript icon, indicating that this package has built-in type declarations

6.3.1 • Public • Published

Forge manifest validation

Package used to parse and validate the manifest.yml file of Forge apps.

How to use the library

Use it as follows:

import { ProcessorBuilder, ValidationTypes } from '@forge/manifest';

const results = ProcessorBuilder.instance()
  .withValidation(ValidationTypes.FULL)
  .build()
  .process();

console.log(`Valid manifest ? ${results.success}`);

How to check the errors

In case of an invalid manifest.yml, the following information will be populated:

export interface ValidationError {
  message: string;
  reference: string;
  level: 'error' | 'warning';
  line?: number;
  column?: number;
}

export interface ManifestValidationResult {
  success: boolean;
  errors?: ValidationError[];
}

Readme

Keywords

none

Package Sidebar

Install

npm i @forge/manifest

Weekly Downloads

6,395

Version

6.3.1

License

UNLICENSED

Unpacked Size

2.71 MB

Total Files

204

Last publish

Collaborators

  • danwinterwijntjes
  • atlassian-cicd