danielgtaylor / danielgtaylor/python-betterproto

Add casing to from_dict method

オープン
#660 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
1.8k
フォーク
234
PR マージ指標
30日以内にマージされた PR はありません

説明

### Summary

from_dict method did not support casing

### What is the feature request for?

The core library

### The Problem

When using `to_dict` method I can pass case, but for `from_dict` method only safe_snake_case is available, It looks like some inconsistent behavior

### The Ideal Solution

As i understand `safe snake case` is not necessarily needs to be safe, so replacing it with any casting method would be safe

### The Current Solution

Just use snakecase in dict

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず from_dict と to_dict のコアライブラリのエントリポイントを見つけ、次に to_dict で既存の case 引数がどのように処理されているかを、from_dict で固定されている safe_snake_case の動作と比較します。想定される大文字・小文字のオプションを確認し、両方のメソッドで一貫した大文字・小文字のサポートを done と定義する前に、関連するテストまたはテストの場所を特定します。

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

評価

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

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

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