schema property

Map<String, Object> schema
final

Implementation

static final schema = {
  r'$schema': 'http://json-schema.org/draft-06/schema#',
  r'$id': '$id',
  r'$comment':
      'https://pub.dev/documentation/charts_common/latest/common/NumericTickProviderSpec-class.html',
  'title': 'NumericTickProviderSpec',
  'type': 'object',
  'additionalProperties': false,
  'properties': {
    'dataIsInWholeNumbers': SchemaHelper.boolSchema,
    'desiredMaxTickCount': SchemaHelper.numberSchema,
    'desiredMinTickCount': SchemaHelper.numberSchema,
    'desiredTickCount': SchemaHelper.numberSchema,
    'ticks': SchemaHelper.arraySchema(
      TickSpecSchema.id,
      includeObject: true,
    ),
    'type': {
      'type': 'string',
      'enum': [
        'basic',
        'bucketing',
        'end_points',
        'static',
      ],
    },
    'zeroBound': SchemaHelper.boolSchema,
  },
};