# app.attrails.defs

- Kind: defs
- Authority: attrails.app
- Lexicon: 1
- Published by [attrails.app](https://lexicon.garden/identity/did:plc:q7v2r4sxk4pecbwmaucvb2vn), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:q7v2r4sxk4pecbwmaucvb2vn/app.attrails.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:q7v2r4sxk4pecbwmaucvb2vn/app.attrails.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:q7v2r4sxk4pecbwmaucvb2vn/app.attrails.defs/analytics)

## #aspectRatio (`app.attrails.defs#aspectRatio`)

Type: object

Width:height ratio so clients can lay out before the image loads.

### Properties

- `height` (integer, required)
  - Constraints: minimum: 1
- `width` (integer, required)
  - Constraints: minimum: 1

## #cycling (`app.attrails.defs#cycling`)

Type: token

Cycling of any kind.

## #easy (`app.attrails.defs#easy`)

Type: token

Easy for the stated activity.

## #extreme (`app.attrails.defs#extreme`)

Type: token

Extreme for the stated activity.

## #gravel (`app.attrails.defs#gravel`)

Type: token

Mostly gravel / unpaved roads.

## #hard (`app.attrails.defs#hard`)

Type: token

Hard for the stated activity.

## #hiking (`app.attrails.defs#hiking`)

Type: token

Hiking or trekking.

## #image (`app.attrails.defs#image`)

Type: object

A photo attached to a route or review.

### Properties

- `alt` (string, required): Alt text for accessibility. May be empty.
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `aspectRatio` (ref)
  - Reference: `#aspectRatio`
- `image` (blob, required)
  - Constraints: maxSize: 1000000, accept: image/*

## #mixed (`app.attrails.defs#mixed`)

Type: token

Mix of surfaces.

## #moderate (`app.attrails.defs#moderate`)

Type: token

Moderate for the stated activity.

## #other (`app.attrails.defs#other`)

Type: token

Any other activity.

## #paved (`app.attrails.defs#paved`)

Type: token

Entirely paved.

## #running (`app.attrails.defs#running`)

Type: token

Running or jogging.

## #trail (`app.attrails.defs#trail`)

Type: token

Singletrack, footpath or trail.

## #walking (`app.attrails.defs#walking`)

Type: token

Walking.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "aspectRatio": {
      "description": "Width:height ratio so clients can lay out before the image loads.",
      "properties": {
        "height": {
          "minimum": 1,
          "type": "integer"
        },
        "width": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "type": "object"
    },
    "cycling": {
      "description": "Cycling of any kind.",
      "type": "token"
    },
    "easy": {
      "description": "Easy for the stated activity.",
      "type": "token"
    },
    "extreme": {
      "description": "Extreme for the stated activity.",
      "type": "token"
    },
    "gravel": {
      "description": "Mostly gravel / unpaved roads.",
      "type": "token"
    },
    "hard": {
      "description": "Hard for the stated activity.",
      "type": "token"
    },
    "hiking": {
      "description": "Hiking or trekking.",
      "type": "token"
    },
    "image": {
      "description": "A photo attached to a route or review.",
      "properties": {
        "alt": {
          "description": "Alt text for accessibility. May be empty.",
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "aspectRatio": {
          "ref": "#aspectRatio",
          "type": "ref"
        },
        "image": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        }
      },
      "required": [
        "image",
        "alt"
      ],
      "type": "object"
    },
    "mixed": {
      "description": "Mix of surfaces.",
      "type": "token"
    },
    "moderate": {
      "description": "Moderate for the stated activity.",
      "type": "token"
    },
    "other": {
      "description": "Any other activity.",
      "type": "token"
    },
    "paved": {
      "description": "Entirely paved.",
      "type": "token"
    },
    "running": {
      "description": "Running or jogging.",
      "type": "token"
    },
    "trail": {
      "description": "Singletrack, footpath or trail.",
      "type": "token"
    },
    "walking": {
      "description": "Walking.",
      "type": "token"
    }
  },
  "id": "app.attrails.defs",
  "lexicon": 1
}
```
