Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Schema Inaccuracy] Pull Request Simple labels.items.properties.description may be null #1812

Copy link
Copy link
Open
@yanyongyu

Description

@yanyongyu
Issue body actions

Schema Inaccuracy

The Pull Request Simple object field labels.items.properties.description may be null, as the Pull Request object.

schemas:
  # incorrect
  pull-request-simple:
    type: object
    title: Pull Request Simple
    properties:
      labels:
      type: array
      items:
        properties:
          description:
            type: string

  # correct
  pull-request:
    type: object
    title: Pull Request
    properties:
      labels:
      type: array
      items:
        properties:
          description:
            type:
            - string
            - 'null'

Expected

change the repo field to oneof repository / type: null

Reproduction Steps

list pull request using curl -X GET https://api.github.com/repos/apache/pulsar/pulls?state=open

Related to yanyongyu/githubkit#7

Metadata

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.