{
  "searchInput": {
    "type": "object",
    "properties": {
      "q": {
        "type": "string",
        "maxLength": 512,
        "description": "Product name or task in Russian/English, up to512characters. Corrections, interpretations and unsupported exclusions are disclosed in queryInfo/warnings; an exact product name is navigation."
      },
      "filters": {
        "type": "object",
        "properties": {
          "type": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "stack": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "platform": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "pricing": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "category": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "subcategory": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "mode": {
            "enum": [
              "library",
              "catalogs",
              "all"
            ]
          },
          "local": {
            "type": "boolean",
            "description": "Verified local launch; this alone does not establish offline operation or absence of external APIs."
          },
          "openSource": {
            "type": "boolean",
            "description": "Verified open-source status of the described product, not a promise that every service or component is free."
          },
          "freeApi": {
            "type": "boolean",
            "description": "Verified free API offering with possible quotas; distinguish this from free code or a free web interface."
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Explicit filters override inferred conditions. OR within each array, AND between groups. Use get_taxonomy for allowed exact values. Unknown facts do not satisfy true or false."
      },
      "limit": {
        "type": "integer",
        "minimum": 1,
        "maximum": 20,
        "default": 20
      },
      "cursor": {
        "type": "string",
        "maxLength": 4096,
        "description": "Opaque nextCursor returned by the same query/filters/sort and index version. Do not construct it. On STALE_CURSOR restart from the first page."
      },
      "sort": {
        "enum": [
          "relevance",
          "name",
          "newest"
        ],
        "default": "relevance"
      },
      "excludeInferred": {
        "type": "array",
        "items": {
          "enum": [
            "type",
            "stack",
            "platform",
            "pricing",
            "category",
            "subcategory",
            "local",
            "openSource",
            "freeApi"
          ]
        },
        "maxItems": 20,
        "uniqueItems": true
      }
    },
    "required": [
      "q"
    ],
    "additionalProperties": false
  },
  "productInput": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 160,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
      }
    },
    "required": [
      "id"
    ],
    "additionalProperties": false
  },
  "compareInput": {
    "type": "object",
    "properties": {
      "ids": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
        },
        "maxItems": 5,
        "uniqueItems": true,
        "minItems": 1
      }
    },
    "required": [
      "ids"
    ],
    "additionalProperties": false
  },
  "emptyInput": {
    "type": "object",
    "properties": {},
    "required": [],
    "additionalProperties": false
  },
  "searchOutput": {
    "type": "object",
    "properties": {
      "dataVersion": {
        "type": "string",
        "maxLength": 128
      },
      "appliedFilters": {
        "type": "object",
        "properties": {
          "type": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "stack": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "platform": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "pricing": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "category": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "subcategory": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "mode": {
            "enum": [
              "library",
              "catalogs",
              "all"
            ]
          },
          "local": {
            "type": "boolean",
            "description": "Verified local launch; this alone does not establish offline operation or absence of external APIs."
          },
          "openSource": {
            "type": "boolean",
            "description": "Verified open-source status of the described product, not a promise that every service or component is free."
          },
          "freeApi": {
            "type": "boolean",
            "description": "Verified free API offering with possible quotas; distinguish this from free code or a free web interface."
          }
        },
        "required": [],
        "additionalProperties": false,
        "description": "Explicit filters override inferred conditions. OR within each array, AND between groups. Use get_taxonomy for allowed exact values. Unknown facts do not satisfy true or false."
      },
      "warnings": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 4096
        }
      },
      "total": {
        "type": "integer",
        "minimum": 0
      },
      "nextCursor": {
        "type": [
          "string",
          "null"
        ]
      },
      "results": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "maxLength": 160
            },
            "name": {
              "type": "string",
              "maxLength": 512
            },
            "canonicalUrl": {
              "type": "string",
              "maxLength": 2048
            },
            "description": {
              "type": "string",
              "maxLength": 8192
            },
            "score": {
              "type": "number"
            },
            "matchReasons": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 2048
              },
              "maxItems": 100,
              "uniqueItems": true
            },
            "matchedTasks": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 4096
              },
              "maxItems": 100,
              "uniqueItems": true
            },
            "unknownFields": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 128
              },
              "maxItems": 100,
              "uniqueItems": true
            }
          },
          "required": [
            "id",
            "name",
            "canonicalUrl",
            "description",
            "score",
            "matchReasons",
            "matchedTasks",
            "unknownFields"
          ],
          "additionalProperties": false
        },
        "maxItems": 20
      },
      "suggestions": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "type": {
              "enum": [
                "product",
                "technology",
                "category",
                "task"
              ]
            },
            "group": {
              "enum": [
                "products",
                "technologies",
                "categories",
                "tasks",
                "corrected",
                "relaxed"
              ]
            },
            "label": {
              "type": "string",
              "maxLength": 4096
            },
            "value": {
              "type": "string",
              "maxLength": 4096
            },
            "q": {
              "type": "string",
              "maxLength": 512
            },
            "id": {
              "type": "string",
              "maxLength": 160
            },
            "count": {
              "type": "integer",
              "minimum": 0
            },
            "removeFilter": {
              "type": "string",
              "maxLength": 128
            },
            "filters": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "maxItems": 20,
                  "uniqueItems": true
                },
                "stack": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "maxItems": 20,
                  "uniqueItems": true
                },
                "platform": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "maxItems": 20,
                  "uniqueItems": true
                },
                "pricing": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "maxItems": 20,
                  "uniqueItems": true
                },
                "category": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "maxItems": 20,
                  "uniqueItems": true
                },
                "subcategory": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "maxItems": 20,
                  "uniqueItems": true
                },
                "mode": {
                  "enum": [
                    "library",
                    "catalogs",
                    "all"
                  ]
                },
                "local": {
                  "type": "boolean",
                  "description": "Verified local launch; this alone does not establish offline operation or absence of external APIs."
                },
                "openSource": {
                  "type": "boolean",
                  "description": "Verified open-source status of the described product, not a promise that every service or component is free."
                },
                "freeApi": {
                  "type": "boolean",
                  "description": "Verified free API offering with possible quotas; distinguish this from free code or a free web interface."
                }
              },
              "required": [],
              "additionalProperties": false,
              "description": "Explicit filters override inferred conditions. OR within each array, AND between groups. Use get_taxonomy for allowed exact values. Unknown facts do not satisfy true or false."
            }
          },
          "required": [
            "type",
            "group",
            "label",
            "value"
          ],
          "additionalProperties": false
        },
        "maxItems": 8
      },
      "facets": {
        "type": "object",
        "additionalProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "queryInfo": {
        "type": "object",
        "properties": {
          "original": {
            "type": "string",
            "maxLength": 512
          },
          "normalized": {
            "type": "string",
            "maxLength": 9216
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 9216
            }
          },
          "inferredFilters": {
            "type": "object",
            "properties": {
              "type": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "stack": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "platform": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "pricing": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "category": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "subcategory": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "mode": {
                "enum": [
                  "library",
                  "catalogs",
                  "all"
                ]
              },
              "local": {
                "type": "boolean",
                "description": "Verified local launch; this alone does not establish offline operation or absence of external APIs."
              },
              "openSource": {
                "type": "boolean",
                "description": "Verified open-source status of the described product, not a promise that every service or component is free."
              },
              "freeApi": {
                "type": "boolean",
                "description": "Verified free API offering with possible quotas; distinguish this from free code or a free web interface."
              }
            },
            "required": [],
            "additionalProperties": false,
            "description": "Explicit filters override inferred conditions. OR within each array, AND between groups. Use get_taxonomy for allowed exact values. Unknown facts do not satisfy true or false."
          },
          "filters": {
            "type": "object",
            "properties": {
              "type": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "stack": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "platform": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "pricing": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "category": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "subcategory": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                },
                "maxItems": 20,
                "uniqueItems": true
              },
              "mode": {
                "enum": [
                  "library",
                  "catalogs",
                  "all"
                ]
              },
              "local": {
                "type": "boolean",
                "description": "Verified local launch; this alone does not establish offline operation or absence of external APIs."
              },
              "openSource": {
                "type": "boolean",
                "description": "Verified open-source status of the described product, not a promise that every service or component is free."
              },
              "freeApi": {
                "type": "boolean",
                "description": "Verified free API offering with possible quotas; distinguish this from free code or a free web interface."
              }
            },
            "required": [],
            "additionalProperties": false,
            "description": "Explicit filters override inferred conditions. OR within each array, AND between groups. Use get_taxonomy for allowed exact values. Unknown facts do not satisfy true or false."
          },
          "inferred": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "maxLength": 128
                },
                "value": {
                  "type": [
                    "array",
                    "boolean",
                    "string"
                  ]
                },
                "label": {
                  "type": "string",
                  "maxLength": 4096
                }
              },
              "required": [
                "key",
                "value",
                "label"
              ],
              "additionalProperties": false
            }
          },
          "tokens": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 9216
            }
          },
          "excludedInferred": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            },
            "maxItems": 20,
            "uniqueItems": true
          },
          "corrections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "original": {
                  "type": "string",
                  "maxLength": 512
                },
                "corrected": {
                  "type": "string",
                  "maxLength": 512
                }
              },
              "required": [
                "original",
                "corrected"
              ],
              "additionalProperties": false
            }
          },
          "unsupportedConstraints": {
            "type": "array",
            "items": {
              "type": [
                "string",
                "object"
              ]
            }
          },
          "unresolvedExclusions": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            }
          },
          "taskInterpretations": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 4096
            }
          },
          "unmatchedTerms": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 9216
            }
          },
          "correctedQuery": {
            "type": "string",
            "maxLength": 512
          }
        },
        "required": [
          "original",
          "normalized",
          "terms",
          "inferredFilters",
          "excludedInferred",
          "corrections",
          "unmatchedTerms"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "dataVersion",
      "appliedFilters",
      "warnings",
      "total",
      "nextCursor",
      "results",
      "suggestions",
      "facets",
      "queryInfo"
    ],
    "additionalProperties": false
  },
  "productOutput": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://base.akulich.dev/api/v1/product.schema.json",
    "title": "BASE public product",
    "type": "object",
    "properties": {
      "schemaVersion": {
        "type": "integer",
        "const": 1
      },
      "id": {
        "type": "string",
        "minLength": 1,
        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
      },
      "name": {
        "type": "string",
        "minLength": 1,
        "pattern": "\\S"
      },
      "locale": {
        "type": "string",
        "const": "ru"
      },
      "canonicalUrl": {
        "type": "string",
        "minLength": 1,
        "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
        "format": "uri"
      },
      "officialUrl": {
        "type": "string",
        "minLength": 1,
        "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
        "format": "uri"
      },
      "isCatalog": {
        "type": "boolean"
      },
      "description": {
        "type": "string",
        "minLength": 1,
        "pattern": "\\S"
      },
      "tasks": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        "minItems": 1
      },
      "categoryIds": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        "minItems": 1,
        "uniqueItems": true
      },
      "subcategoryIds": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        "minItems": 0,
        "uniqueItems": true
      },
      "tags": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        "minItems": 0,
        "uniqueItems": true
      },
      "aliases": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        "minItems": 0,
        "uniqueItems": true
      },
      "platforms": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        "minItems": 0,
        "uniqueItems": true
      },
      "stack": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        "minItems": 0,
        "uniqueItems": true
      },
      "compatibility": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "pricing": {
        "type": "string",
        "enum": [
          "free",
          "freemium",
          "paid",
          "unknown"
        ]
      },
      "freeUsage": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "paidUsage": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "license": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "selectionGuide": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "purpose": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          },
          "chooseWhen": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 1
          },
          "considerInstead": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 0
          },
          "requirements": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 0
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 0
          },
          "faq": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "question": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "\\S"
                },
                "answer": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "\\S"
                }
              },
              "required": [
                "question",
                "answer"
              ],
              "additionalProperties": false
            },
            "minItems": 1
          },
          "related": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
                },
                "reason": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "\\S"
                }
              },
              "required": [
                "id",
                "reason"
              ],
              "additionalProperties": false
            },
            "minItems": 0
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
              "format": "uri"
            },
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "required": [
          "purpose",
          "chooseWhen",
          "considerInstead",
          "requirements",
          "limitations",
          "faq",
          "related",
          "sources"
        ],
        "additionalProperties": false
      },
      "selectionCheckedAt": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S",
        "format": "date"
      },
      "applicationGuide": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "goal": {
            "type": "string",
            "minLength": 1,
            "pattern": "\\S"
          },
          "inputs": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 1
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 1
          },
          "checks": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 1
          }
        },
        "required": [
          "goal",
          "inputs",
          "steps",
          "checks"
        ],
        "additionalProperties": false
      },
      "sources": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
          "format": "uri"
        },
        "minItems": 1,
        "uniqueItems": true
      },
      "checkedAt": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S",
        "format": "date"
      },
      "reviewScope": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "relatedIds": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
        },
        "minItems": 0,
        "uniqueItems": true
      },
      "dataVersion": {
        "type": "string",
        "minLength": 1,
        "pattern": "^[a-f0-9]{20}$"
      },
      "type": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "kind": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "pricingNote": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "notes": {
        "type": [
          "string",
          "null"
        ],
        "minLength": 1,
        "pattern": "\\S"
      },
      "labeledSources": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "minLength": 1,
              "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
              "format": "uri"
            },
            "label": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            }
          },
          "required": [
            "url",
            "label"
          ],
          "additionalProperties": false
        },
        "minItems": 0
      },
      "licenseGuides": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$"
            },
            "title": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "scope": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "summary": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "url": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
              "format": "uri"
            }
          },
          "required": [
            "id",
            "title",
            "scope",
            "summary",
            "url"
          ],
          "additionalProperties": false
        },
        "minItems": 0
      },
      "entryIds": {
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
        },
        "minItems": 0,
        "uniqueItems": true
      },
      "composition": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "contents": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 0
          },
          "tasks": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "minItems": 0
          },
          "reviewedIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
            },
            "minItems": 0,
            "uniqueItems": true
          },
          "reviewNote": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "pattern": "\\S"
          }
        },
        "required": [
          "contents",
          "tasks",
          "reviewedIds",
          "reviewNote"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "schemaVersion",
      "id",
      "name",
      "locale",
      "canonicalUrl",
      "officialUrl",
      "isCatalog",
      "description",
      "tasks",
      "categoryIds",
      "subcategoryIds",
      "tags",
      "aliases",
      "platforms",
      "stack",
      "compatibility",
      "pricing",
      "freeUsage",
      "paidUsage",
      "license",
      "selectionGuide",
      "selectionCheckedAt",
      "applicationGuide",
      "sources",
      "checkedAt",
      "reviewScope",
      "relatedIds",
      "dataVersion"
    ],
    "additionalProperties": false
  },
  "compareOutput": {
    "type": "object",
    "properties": {
      "dataVersion": {
        "type": "string",
        "maxLength": 128
      },
      "products": {
        "type": "array",
        "items": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "$id": "https://base.akulich.dev/api/v1/product.schema.json",
          "title": "BASE public product",
          "type": "object",
          "properties": {
            "schemaVersion": {
              "type": "integer",
              "const": 1
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "locale": {
              "type": "string",
              "const": "ru"
            },
            "canonicalUrl": {
              "type": "string",
              "minLength": 1,
              "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
              "format": "uri"
            },
            "officialUrl": {
              "type": "string",
              "minLength": 1,
              "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
              "format": "uri"
            },
            "isCatalog": {
              "type": "boolean"
            },
            "description": {
              "type": "string",
              "minLength": 1,
              "pattern": "\\S"
            },
            "tasks": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "\\S"
              },
              "minItems": 1
            },
            "categoryIds": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "\\S"
              },
              "minItems": 1,
              "uniqueItems": true
            },
            "subcategoryIds": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "\\S"
              },
              "minItems": 0,
              "uniqueItems": true
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "\\S"
              },
              "minItems": 0,
              "uniqueItems": true
            },
            "aliases": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "\\S"
              },
              "minItems": 0,
              "uniqueItems": true
            },
            "platforms": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "\\S"
              },
              "minItems": 0,
              "uniqueItems": true
            },
            "stack": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "\\S"
              },
              "minItems": 0,
              "uniqueItems": true
            },
            "compatibility": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "pricing": {
              "type": "string",
              "enum": [
                "free",
                "freemium",
                "paid",
                "unknown"
              ]
            },
            "freeUsage": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "paidUsage": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "license": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "selectionGuide": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "purpose": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "\\S"
                },
                "chooseWhen": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 1
                },
                "considerInstead": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 0
                },
                "requirements": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 0
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 0
                },
                "faq": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "question": {
                        "type": "string",
                        "minLength": 1,
                        "pattern": "\\S"
                      },
                      "answer": {
                        "type": "string",
                        "minLength": 1,
                        "pattern": "\\S"
                      }
                    },
                    "required": [
                      "question",
                      "answer"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 1
                },
                "related": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1,
                        "pattern": "\\S"
                      }
                    },
                    "required": [
                      "id",
                      "reason"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 0
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
                    "format": "uri"
                  },
                  "minItems": 1,
                  "uniqueItems": true
                }
              },
              "required": [
                "purpose",
                "chooseWhen",
                "considerInstead",
                "requirements",
                "limitations",
                "faq",
                "related",
                "sources"
              ],
              "additionalProperties": false
            },
            "selectionCheckedAt": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S",
              "format": "date"
            },
            "applicationGuide": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "goal": {
                  "type": "string",
                  "minLength": 1,
                  "pattern": "\\S"
                },
                "inputs": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 1
                },
                "steps": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 1
                },
                "checks": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 1
                }
              },
              "required": [
                "goal",
                "inputs",
                "steps",
                "checks"
              ],
              "additionalProperties": false
            },
            "sources": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
                "format": "uri"
              },
              "minItems": 1,
              "uniqueItems": true
            },
            "checkedAt": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S",
              "format": "date"
            },
            "reviewScope": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "relatedIds": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
              },
              "minItems": 0,
              "uniqueItems": true
            },
            "dataVersion": {
              "type": "string",
              "minLength": 1,
              "pattern": "^[a-f0-9]{20}$"
            },
            "type": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "kind": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "pricingNote": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "notes": {
              "type": [
                "string",
                "null"
              ],
              "minLength": 1,
              "pattern": "\\S"
            },
            "labeledSources": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
                    "format": "uri"
                  },
                  "label": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "pattern": "\\S"
                  }
                },
                "required": [
                  "url",
                  "label"
                ],
                "additionalProperties": false
              },
              "minItems": 0
            },
            "licenseGuides": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "scope": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "summary": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "minLength": 1,
                    "pattern": "^https?://[^/\\s@]+(?:[/?#]|$)",
                    "format": "uri"
                  }
                },
                "required": [
                  "id",
                  "title",
                  "scope",
                  "summary",
                  "url"
                ],
                "additionalProperties": false
              },
              "minItems": 0
            },
            "entryIds": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
              },
              "minItems": 0,
              "uniqueItems": true
            },
            "composition": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "contents": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 0
                },
                "tasks": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "\\S"
                  },
                  "minItems": 0
                },
                "reviewedIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
                  },
                  "minItems": 0,
                  "uniqueItems": true
                },
                "reviewNote": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "minLength": 1,
                  "pattern": "\\S"
                }
              },
              "required": [
                "contents",
                "tasks",
                "reviewedIds",
                "reviewNote"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "schemaVersion",
            "id",
            "name",
            "locale",
            "canonicalUrl",
            "officialUrl",
            "isCatalog",
            "description",
            "tasks",
            "categoryIds",
            "subcategoryIds",
            "tags",
            "aliases",
            "platforms",
            "stack",
            "compatibility",
            "pricing",
            "freeUsage",
            "paidUsage",
            "license",
            "selectionGuide",
            "selectionCheckedAt",
            "applicationGuide",
            "sources",
            "checkedAt",
            "reviewScope",
            "relatedIds",
            "dataVersion"
          ],
          "additionalProperties": false
        },
        "minItems": 1,
        "maxItems": 5
      }
    },
    "required": [
      "dataVersion",
      "products"
    ],
    "additionalProperties": false
  },
  "taxonomyOutput": {
    "type": "object",
    "properties": {
      "dataVersion": {
        "type": "string",
        "maxLength": 128
      },
      "taxonomy": {
        "type": "object",
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "maxLength": 160
                },
                "label": {
                  "type": "string",
                  "maxLength": 512
                },
                "children": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 160
                      },
                      "label": {
                        "type": "string",
                        "maxLength": 512
                      }
                    },
                    "required": [
                      "id",
                      "label"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "label",
                "children"
              ],
              "additionalProperties": false
            }
          },
          "checkedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "integer"
          }
        },
        "required": [
          "categories"
        ],
        "additionalProperties": false
      },
      "bundles": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "maxLength": 160
            },
            "name": {
              "type": "string",
              "maxLength": 512
            },
            "entryIds": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 160
              },
              "maxItems": 2000
            }
          },
          "required": [
            "id",
            "name",
            "entryIds"
          ],
          "additionalProperties": false
        }
      },
      "filterValues": {
        "type": "object",
        "properties": {
          "type": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 4000
          },
          "stack": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 4000
          },
          "platform": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 4000
          },
          "pricing": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 4000
          },
          "category": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 4000
          },
          "subcategory": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 4000
          },
          "mode": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 512
            },
            "maxItems": 4000
          }
        },
        "required": [
          "type",
          "stack",
          "platform",
          "pricing",
          "category",
          "subcategory",
          "mode"
        ],
        "additionalProperties": false
      },
      "categories": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "maxLength": 160
            },
            "label": {
              "type": "string",
              "maxLength": 512
            },
            "children": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 512
                  }
                },
                "required": [
                  "id",
                  "label"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "id",
            "label",
            "children"
          ],
          "additionalProperties": false
        }
      },
      "subcategories": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "maxLength": 160
            },
            "label": {
              "type": "string",
              "maxLength": 512
            },
            "categoryId": {
              "type": "string",
              "maxLength": 160
            }
          },
          "required": [
            "id",
            "label",
            "categoryId"
          ],
          "additionalProperties": false
        }
      },
      "type": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 512
        },
        "maxItems": 4000
      },
      "stack": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 512
        },
        "maxItems": 4000
      },
      "platform": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 512
        },
        "maxItems": 4000
      },
      "pricing": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 512
        },
        "maxItems": 4000
      },
      "category": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 512
        },
        "maxItems": 4000
      },
      "subcategory": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 512
        },
        "maxItems": 4000
      },
      "constraints": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "enum": [
                "local",
                "openSource",
                "freeApi"
              ]
            },
            "values": {
              "type": "array",
              "items": {
                "type": "boolean"
              },
              "uniqueItems": true
            },
            "unknown": {
              "type": "null"
            }
          },
          "required": [
            "key",
            "values",
            "unknown"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "dataVersion",
      "taxonomy",
      "bundles",
      "filterValues"
    ],
    "additionalProperties": false
  }
}
