Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This object will need to be changed to match the API structure. It holds the minimum set of things that should be remembered

Version 1

Code Block
{
    "type": "object",
    "properties": {
        "state": {
            "type": "object",
            "properties": {
                "id": {"type":"integer"},
                "label": {"type":"string"}
            }
        },
        "region": {
            "type": "stateId": "<state>",
  "stateLabel" <label>,
  "regionId": "<region>",
  "regionShorthand": "<shorthand>",
  "concilLabel" <label>,
  "concilShorthand" <shorthand>,
  "goals": "<goals>",
  "selectedCrops": ["crop1", "crop2"],
  "consent": <bool>,
  "declinedLogin": <bool>,"object",
            "properties": {
                "id": {"type":"integer"},
                "shorthand": {"type":"string"}
            }
        },
        "council": {
            "type": "object",
            "properties": {
                "label": {"type":"string"},
                "shorthand": {"type":"string"}
            }
        },
        "consent": {
            "type": "object",
            "properties": {
                "status": {"type":"boolean"}, // add back?
                "date": {"type":"string"},
            },
        }
    }
}

Version 2 (field based)

Code Block
{
    "type": "object",
    "properties": {
        "state": {
            "type": "object",
            "properties": {
                "id": {"type":"integer"},
                "label": {"type":"string"},
                "shorthand": {"type":"string"} // add back?
            }
        },
        "region": {
            "type": "object",
            "properties": {
                "id": {"type":"integer"},
                "label": {"type":"string"}, // add back?
                "shorthand": {"type":"string"}
            }
        },
        "council": {
            "type": "object",
            "properties": {
                "id": {"type":"integer"}, // add back?
                "label": {"type":"string"},
                "shorthand": {"type":"string"}
            }
        },
        "goals": { // field based
            "type":"array",
            "items": {"type":"integer"}
        },
        "selectedCrops": { // field based
            "type":"array",
            "items": {"type":"integer"}
        },
        "consent": {
            "type": "object",
            "properties": {
                "status": {"type":"boolean"}, // add back?
                "date": {"type":"string"},
            },
        }
    }
}

Questions

  1. Do we want to store soil conditions and weather? → yes, tied to field

  2. Selected crops tied to field or not?

  3. Do we want to store sidebar → my impression is no, need to get more feedback