credmark.dto.IntDTO

class IntDTO(value, **_kwargs)[source]

Bases: int

A DTO that can be used as an integer output (or input) to a model. When used as a top-level DTO it is serialized as a dict with a value field {"value": 12345}, otherwise it is serialized as a number.

It can be used in python code as a normal integer.

Methods

dict

schema

validate

Attributes

Parameters

value (int) –