ts_ids_core.schema.modifier module

Model Modifier[source]

Bases: IdsElement

A model to capture the numeric value and prefix (modifier) for a prefixed numeric string (e.g. ‘>1.0’).

Show JSON schema
{
   "description": "A model to capture the numeric value and prefix (modifier) for a prefixed numeric string (e.g. '>1.0').",
   "type": "object",
   "properties": {
      "value": {
         "description": "Modifier value.",
         "type": "number"
      },
      "modifier": {
         "$ref": "#/definitions/ModifierType",
         "description": "Modifier type."
      }
   },
   "additionalProperties": false,
   "definitions": {
      "ModifierType": {
         "description": "An enumeration of observed modifiers in the primary data.",
         "enum": [
            "<",
            ">",
            "<=",
            ">=",
            null
         ],
         "type": [
            "string",
            "null"
         ]
      }
   }
}

Validators:
  • all_abstract_fields_implemented » all fields

field modifier: ModifierType

Modifier type.

field value: float

Modifier value.

class ModifierType(value)[source]

Bases: Enum

An enumeration of observed modifiers in the primary data.

GREATER_THAN = '>'
GREATER_THAN_OR_EQUAL = '>='
LESS_THAN = '<'
LESS_THAN_OR_EQUAL = '<='
NULL = None