{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://truleaf.org/fields/data-formats/1.0.0/farms-geojson.schema.json","title":"Farms (geo/farms.geojson)","description":"Farms of the workspace with their location point, no polygon; geometry null for a farm without a location.","type":"object","additionalProperties":false,"required":["type","truleaf","features"],"properties":{"type":{"const":"FeatureCollection"},"truleaf":{"$ref":"#/$defs/truleaf"},"bbox":{"$ref":"#/$defs/bbox"},"features":{"type":"array","items":{"$ref":"#/$defs/feature"}}},"$defs":{"truleaf":{"type":"object","additionalProperties":false,"required":["schema","formatVersion","attribution","generatedAt","exportId"],"description":"Truleaf foreign member (an RFC 7946 extension).","properties":{"schema":{"type":"string","format":"uri","description":"<FIELDS_EXPORT_REGISTER_BASE_URL>/<version>/<name>.schema.json."},"formatVersion":{"type":"string","pattern":"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"attribution":{"type":"array","items":{"type":"string","minLength":1}},"generatedAt":{"type":"string","format":"date-time"},"exportId":{"type":"string","format":"uuid"}}},"bbox":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"}},"position":{"type":"array","minItems":2,"maxItems":3,"prefixItems":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-90,"maximum":90}],"items":{"type":"number"},"description":"[longitude, latitude] in EPSG:4326, 6 decimals."},"linearRing":{"type":"array","minItems":4,"items":{"$ref":"#/$defs/position"}},"polygonCoordinates":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/linearRing"}},"multiPolygon":{"type":"object","additionalProperties":false,"required":["type","coordinates"],"properties":{"type":{"const":"MultiPolygon"},"coordinates":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/polygonCoordinates"}},"bbox":{"$ref":"#/$defs/bbox"}}},"feature":{"type":"object","additionalProperties":false,"required":["type","geometry","properties","id"],"properties":{"type":{"const":"Feature"},"id":{"type":"string","format":"uuid"},"geometry":{"oneOf":[{"$ref":"#/$defs/point"},{"type":"null"}]},"properties":{"$ref":"#/$defs/farmProperties"},"bbox":{"$ref":"#/$defs/bbox"}}},"farmProperties":{"type":"object","additionalProperties":false,"required":["farmId","name","externalIds"],"properties":{"farmId":{"type":"string","format":"uuid"},"name":{"type":"string","minLength":1,"maxLength":120},"externalIds":{"type":"object","propertyNames":{"pattern":"^[a-z][a-z0-9_]*$"},"additionalProperties":{"type":"string"},"description":"Holding registrations supplied by country add-ons."}}},"point":{"type":"object","additionalProperties":false,"required":["type","coordinates"],"properties":{"type":{"const":"Point"},"coordinates":{"$ref":"#/$defs/position"},"bbox":{"$ref":"#/$defs/bbox"}}}}}