Skip to content

[Schema Inaccuracy] minimal-repository.license.url may be null #4310

Open
@chohner

Description

Schema Inaccuracy

While using ajv to validate against the provided JSON Schema, I have found one repository where the url field of license is null - the JSON schema however insists on string.

Expected

I expect the data to match the provided schema, so either update minimal-repository.properties.license.properties.url to be type: ["string", "null"] or update the response to return "" on missing license URL.

Reproduction Steps

$ curl https://api.github.com/repos/digitalservicebund/AusweisApp2Wrapper-iOS-SPM

(...)
    "license": {
      "key": "other",
      "name": "Other",
      "spdx_id": "NOASSERTION",
      "url": null,
      "node_id": "MDc6TGljZW5zZTA="
    },
(...)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions