Skip to content

Incorrect schema for system_information.data.languages #89

@testower

Description

@testower

I noticed a problem with the generated java model. Given the following in system_information.data:

    "languages": {
      "description":
        "List of languages used in translated strings. Each element in the list must be of type Language.",
      "type": "array",
      "pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
    },

the generated type was simply List<Object>, while it should have been List<String>.

I belive this should be the correct schema:

    "languages": {
      "description":
        "List of languages used in translated strings. Each element in the list must be of type Language.",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z]{2,3}(-[A-Z]{2})?$"
      }
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions