JSONSchema.integer constructor

JSONSchema.integer({
  1. String? description,
  2. String? title,
  3. bool? nullable,
  4. int? minimum,
  5. int? maximum,
})

Construct a schema for an integer number.

Json schema integer doesn't support format.

Implementation

JSONSchema.integer({
  String? description,
  String? title,
  bool? nullable,
  int? minimum,
  int? maximum,
}) : this(
        SchemaType.integer,
        description: description,
        title: title,
        nullable: nullable,
        minimum: minimum?.toDouble(),
        maximum: maximum?.toDouble(),
      );