Eido fails to recognize integer type in PEP

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
data

調査の方向性

リンクされたPEPとスキーマのスニペットを使って、報告された検証を再現することから始め、その後、スキーマ検証前にテーブルの file_size 値がどのように変換されるかを追跡してください。issue ではリポジトリのファイルもテストも指定されていません。完了の条件は、整数の file_size 値が宣言されたスキーマ型 integer に対して検証に通ることです。

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

説明

I have this PEP: nleroy917/38e44dd0-c3df-418e-9256-d0824748901, and I have assigned it to this schema.

Snippet of PEP:
file_document_id file_type file_name file_format read_index file_size
096d3d77-a00e-42d8-a9a5-97c301c42872 sequence_file SRR12695067_R2.fastq.gz fastq.gz read2 7540543107
59ff90f6-4ded-4ad3-ba77-8ff6a06a85dd sequence_file SRR12695068_R2.fastq.gz fastq.gz read2 8367854671
be978666-f337-40d1-9287-299aad4f6014 sequence_file SRR12695067_R1.fastq.gz fastq.gz read1 7537744821
de5d4175-d85c-4dc1-945c-19718fd3a0ae sequence_file SRR12695068_R1.fastq.gz fastq.gz read1 8349553318
Snippet of schema:
properties:
  samples:
    items:
      properties:
        file_size:
          type: integer

I get the following eido result:

{
  "valid": false,
  "error_type": "Samples",
  "errors": [
    "'7540543107' is not of type 'integer' (06de2327-26ba-44d4-8c03-b2c606e83ae1)",
    "'8367854671' is not of type 'integer' (299cb4fe-1697-4376-8670-b01afa252a33)",
    "'7537744821' is not of type 'integer' (13bad80f-a7a4-45e5-978a-f483d51169b8)",
    "'8349553318' is not of type 'integer' (a56225f5-d2ad-4bea-9d3e-c6bf2dcbace5)"
  ]
}

It seems like it just sends it as a string, but it **is** a valid integer.
主要言語
Python
スター
5
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

pepkit/eido のほかの issue

pepkit/eido の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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