Skip to content

[Schema Inaccuracy] Issue body_html maybe null #1639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yanyongyu opened this issue Oct 6, 2022 · 0 comments
Open

[Schema Inaccuracy] Issue body_html maybe null #1639

yanyongyu opened this issue Oct 6, 2022 · 0 comments

Comments

@yanyongyu
Copy link

yanyongyu commented Oct 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants