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

10.0.0 • 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[];
}

Updating Manifest schemas

The schemas in this package are automatically updated from Shipyard daily. Any manual changes to these files will be reverted. Please raise a PR in app-host-artifacts instead.

/@forge/manifest/

    Package Sidebar

    Install

    npm i @forge/manifest

    Weekly Downloads

    13,484

    Version

    10.0.0

    License

    SEE LICENSE IN LICENSE.txt

    Unpacked Size

    3.83 MB

    Total Files

    292

    Last publish

    Collaborators

    • atlassianartifactteam