Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Accept priority as string

オープン
#642 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
api, backend

調査の方向性

ソースファイルもテストも指定されていないため、まずメッセージ優先度を処理するサーバー API を追跡してください。既存の検証パスとそのテストを確認し、数値文字列が受け入れられる一方で、非整数文字列は引き続きエラーになることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

a:feature in:server

Is your feature request related to a problem? Please describe.
Home-Assistant notify service with POST_JSON type always sends priority as sting in resulting JSON due to templating engine (similar how ansible jinja templating works), that is not accepted by gotify server with 400 bad requests, as it accepts strict integer value for priority only

Describe the solution you'd like
gotify server to accept priority as string, and throw an error only if string value is not castable to integer

Describe alternatives you've considered
No real alernativies found so far, only hardcoding particular value/default priority which doesn't serve the purpose of prioirty differentiation within single app messages

Additional context
N/A

主要言語
Go
スター
16k
フォーク
891
平均マージ
2日 11時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

gotify/server のほかの issue

gotify/server の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。