VKCOM / vk-api-schema

JSON Schema of VK API
MIT License
206 stars 63 forks source link

Wrong enum type `groups_group_subject` #213

Open elias506 opened 2 years ago

elias506 commented 2 years ago

We have integer enum type, but in enum array declare string type.

"groups_group_subject": {
      "type": "string",
      "enum": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11,
        12,
        13,
        14,
        15,
        16,
        17,
        18,
        19,
        20,
        21,
        22,
        23,
        24,
        25,
        26,
        27,
        28,
        29,
        30,
        31,
        32,
        33,
        34,
        35,
        36,
        37,
        38,
        39,
        40,
        41,
        42
      ],
      "enumNames": [
        "auto",
        "activity holidays",
        "business",
        "pets",
        "health",
        "dating and communication",
        "games",
        "it",
        "cinema",
        "beauty and fashion",
        "cooking",
        "art and culture",
        "literature",
        "mobile services and internet",
        "music",
        "science and technology",
        "real estate",
        "news and media",
        "security",
        "education",
        "home and renovations",
        "politics",
        "food",
        "industry",
        "travel",
        "work",
        "entertainment",
        "religion",
        "family",
        "sports",
        "insurance",
        "television",
        "goods and services",
        "hobbies",
        "finance",
        "photo",
        "esoterics",
        "electronics and appliances",
        "erotic",
        "humor",
        "society_humanities",
        "design and graphics"
      ]
    },
elias506 commented 2 years ago

@tsivarev свяжитесь со мной

elias506 commented 2 years ago

fix by https://github.com/VKCOM/vk-api-schema/pull/214