Skip to content

Commit

Permalink
Added unknown data type support
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jan 23, 2022
1 parent 8f8e825 commit a9bd811
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastybird_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
Metadata loader and validator and sets of useful enums
"""

__version__ = "0.36.0"
__version__ = "0.37.0"
1 change: 1 addition & 0 deletions fastybird_metadata/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ class DataType(ExtendedEnum, Enum):
COLOR: str = "color"
BUTTON: str = "button"
SWITCH: str = "switch"
UNKNOWN: str = "unknown"

# -----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "@fastybird/metadata",
"version" : "0.36.0",
"version" : "0.37.0",
"description" : "FastyBird metadata reader & validator for modules, plugins & etc. used by FastyBird applications",
"keywords" : [
"fastybird",
Expand Down
1 change: 1 addition & 0 deletions public/lib/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export enum DataType {
COLOR = 'color',
BUTTON = 'button',
SWITCH = 'switch',
UNKNOWN = 'unknown',
}

export enum SwitchPayload {
Expand Down
1 change: 1 addition & 0 deletions src/Types/DataTypeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class DataTypeType extends Consistence\Enum\Enum
public const DATA_TYPE_COLOR = 'color';
public const DATA_TYPE_BUTTON = 'button';
public const DATA_TYPE_SWITCH = 'switch';
public const DATA_TYPE_UNKNOWN = 'unknown';

/**
* @return string
Expand Down

0 comments on commit a9bd811

Please sign in to comment.