JSONSchema.number constructor

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

Construct a schema for a non-integer number.

Json schema number doesn't support format.

Implementation

JSONSchema.number({
  String? description,
  String? title,
  bool? nullable,
  double? minimum,
  double? maximum,
}) : this(
        SchemaType.number,
        description: description,
        title: title,
        nullable: nullable,
        minimum: minimum,
        maximum: maximum,
      );