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] Issue body_html maybe null #1639

Copy link
Copy link
Open
@yanyongyu

Description

@yanyongyu
Issue body actions

Schema Inaccuracy

As the body field of the Issue object schema, the issue body may be empty (null):

body:
  description: Contents of the issue
  type:
  - string
  - 'null'
  examples:
  - It looks like the new widget form is broken on Safari. When I try and
    create the widget, Safari crashes. This is reproducible on 10.8, but not
    10.9. Maybe a browser bug?

but the body_html and body_text field cannot be null in the schema. I tried to get some issue without body. The body_html and body_text of the issue is also null.

edited

Found other schemas with body_html and body_text should allow null:

  • Issue
  • Timeline Reviewed Event
  • Release

Expected

The body_html and body_text field in the Issue schema should be string or null.

Reproduction Steps

curl -H "Accept: application/vnd.github.full+json" https://api.github.com/repos/nonebot/nonebot2/issues/1305

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.