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

7.2.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[];
}

/@forge/manifest/

    Package Sidebar

    Install

    npm i @forge/manifest

    Weekly Downloads

    10,834

    Version

    7.2.1

    License

    UNLICENSED

    Unpacked Size

    2.73 MB

    Total Files

    204

    Last publish

    Collaborators

    • danwinterwijntjes
    • atlassian-cicd