Skip to content
On this page

Common Fields

Moost provides a set of general-purpose metadata fields that can be utilized by various parts of your application. These fields serve as a flexible way to store and access common information across different components.

FieldDecoratorDescription
id@IdSets an ID for a class, method, parameter, or other relevant component.
label@LabelSets a descriptive label for a class, method, parameter, or other components.
value@ValueSets a default value that can be utilized in various scenarios.
description@DescriptionProvides a detailed description for a class, method, or other components.
optional@OptionalIndicates whether a field is optional.
required@RequiredSpecifies that a field is mandatory.

When implementing your custom logic with interceptors or adapters, you may utilize these general-purpose fields as per your preference.

These decorators can be applied to classes, methods, parameters, or any other component where you want to store and access the corresponding common field value.

Feel free to customize and use these fields to enhance your Moost application according to your specific needs.

Released under the MIT License.