Static class with loader routines.
This class mostly exists to put the schema structs into input position (taken into a function), so that the jsii-diff checker will make sure all structs are only allowed to be weakened in future updates. For example, it is now allowed to add new required fields, since old CDK frameworks would not be emitting those fields yet.
At the same time, we might as well validate the structure so code doesn't barf on invalid disk input.
|static current||Return the version of the schema module.|
|static input(file)||Take a ManifestFile as input.|
|static validate(file)||Validate the given structured object as a valid ManifestFile schema.|
public static currentVersion(): string
Return the version of the schema module.
public static input(file: ManifestFile): void
Take a ManifestFile as input.
The presence of this method makes sure the struct is only ever weakened in future releases.
public static validate(file: any): void
Validate the given structured object as a valid ManifestFile schema.