{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daily-dev/json-schema/daily-dev-def-2-schema.json",
  "title": "CustomFeed",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daily-dev-custom-feeds-api-openapi.yml#/components/schemas/def-2",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "userId": {
      "type": [
        "string",
        "null"
      ]
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "flags": {
      "$ref": "#/$defs/def-1"
    }
  },
  "$defs": {
    "def-1": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "icon": {
          "type": [
            "string",
            "null"
          ]
        },
        "orderBy": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "DATE",
            "UPVOTES",
            "DOWNVOTES",
            "COMMENTS",
            "CLICKS",
            null
          ]
        },
        "minDayRange": {
          "type": [
            "integer",
            "null"
          ]
        },
        "minUpvotes": {
          "type": [
            "integer",
            "null"
          ]
        },
        "minViews": {
          "type": [
            "integer",
            "null"
          ]
        },
        "disableEngagementFilter": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "title": "CustomFeedFlags"
    }
  }
}