how to specify range in Avro schema?

925 Views Asked by At

I am using Avro schema but I'm not sure how to specify the range for a particular record.

{
   "name": "longitude",
   "type": "int"
}

Let's say this "longitude" can take values only from 0 to 100. How do I mention the range of the longitude in Avro schema?

0

There are 0 best solutions below