Skip to content

[F] isApplicableMetadata

function isApplicableMetadata(
program,
property,
visibility,
isMetadataCallback): boolean

Determines if the given property is metadata that is applicable with the given visibility.

  • No metadata is applicable with Visibility.Item present.
  • If only Visibility.Read is present, then only @header and @status properties are applicable.
  • If Visibility.Read is not present, all metadata properties other than @statusCode are applicable.

Parameters

ParameterTypeDefault value
programProgramundefined
propertyModelPropertyundefined
visibilityVisibilityundefined
isMetadataCallback(program, property) => booleanisMetadata

Returns

boolean