並び順

ブックマーク数

期間指定

  • から
  • まで

81 - 100 件 / 100件

新着順 人気順

validationの検索結果81 - 100 件 / 100件

  • GoとGinをプロジェクトで使ってみて思ったこと - Qiita

    はじめに k.s.ロジャースの西谷です。 今回はGo言語とGinを使ってプロジェクトの開発を行いました。 実務利用は初めてで、このときに感じた便利な機能や躓いた箇所について書いてみようと思います。 もし、間違いやより良い実装があればコメントにて教えて頂けたらと思います。 開発環境 言語: Go 1.13.3 フレームワーク: Gin 便利だと思った所 リクエストのバリデーション Ginではリクエストオブジェクトの定義にbindingを書くことでバリデーションを実施できます。 特殊パターン以外はリクエストに直接書くことができるので、直感的だと思います。 以下のように書くと、reqはIDの値は必ず存在し、Ageは0以上となります。 type CreateUser struct { ID string `json:"id" binding:"required"` Name string `jso

      GoとGinをプロジェクトで使ってみて思ったこと - Qiita
    • Java Bean Validation Basics | Baeldung

      REST with Spring The canonical reference for building a production grade API with Spring Learn Spring Security ▼▲ THE unique Spring Security education if you’re working with Java today

        Java Bean Validation Basics | Baeldung
      • GitHub - arcanis/typanion: Static and runtime type assertion library with no dependencies

        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

          GitHub - arcanis/typanion: Static and runtime type assertion library with no dependencies
        • GitHub - JoshData/python-email-validator: A robust email syntax and deliverability validation library for Python.

          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

            GitHub - JoshData/python-email-validator: A robust email syntax and deliverability validation library for Python.
          • panderaのデータ生成機能を試してみた - EmotionTechテックブログ

            こんにちは、Emotion TechでSREチームに属している菅原です。 Pythonで実装されたデータ処理のテストを書く際に、まとまったテストデータが必要ということはあるかと思います。 今まではテスト用のCSVファイルを用意する or 適当な値を入れたPandasのデータフレームを用意する、で対応していました。 今回は、簡単にテストデータを用意する手段として、panderaの機能が使えないか試してみました。 panderaとは panderaは、データフレームでデータバリデーションを実行して、データ処理パイプラインをより読みやすくロバストにするためのライブラリです。 公式ドキュメントの例をみてみましょう。 import pandas as pd import pandera as pa # data to validate df = pd.DataFrame({ "column1": [

              panderaのデータ生成機能を試してみた - EmotionTechテックブログ
            • GitHub - azu/validate-image-type: Check the image file of a Buffer/Uint8Array that matched expected image MIME-type.

              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                GitHub - azu/validate-image-type: Check the image file of a Buffer/Uint8Array that matched expected image MIME-type.
              • 【今更ながらSpring BootでWEB開発 #4】バリデーション

                バリデーションの実行フォームのクラスにバリデーションの設定ができたので、POSTでリクエストを受け取ったときにバリデーションを実行するようにします。 Spring Bootでは「@Validated」を次のように付与することでバリデーションが実行されるようになります。またバリデーションの結果は「BindingResult」に反映されるようになっており、引数に追加することで参照できます。 @PostMapping("/confirm") public String confirm(@Validated InquiryForm inquiryForm, BindingResult result) { if (result.hasErrors()) { return "inquiry/index.html"; } return "inquiry/confirm.html"; }1つでもバリデーシ

                  【今更ながらSpring BootでWEB開発 #4】バリデーション
                • GitHub - pablo-abc/felte: An extensible form library for Svelte, Solid and React

                  A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

                    GitHub - pablo-abc/felte: An extensible form library for Svelte, Solid and React
                  • フォームの入力値を検証するjQuery Validation Pluginの使い方

                    こんにちは、Ryohei(@ityryohei)です! jQuery Validation Pluginはフォームの入力値をリアルタイムに検証するjQueryのプラグインです。入力ルールを設定するだけでユーザの入力した内容をバリデーションしてくれます。エラーメッセージの表示は次の画面よりもその場で教えてあげる方が親切ですよね。入力段階でエラーメッセージを表示することで、戻って入力し直す、なんて手間も省けますし、この方式を採用しているフォームは最近よく見かけます。 jQuery Validation Pluginをダウンロードする jQuery Validation Pluginの公式サイトです。 https://jqueryvalidation.org/ jQuery Validation Pluginの本体は下記のリンクからダウンロードすることができます。 https://github.

                      フォームの入力値を検証するjQuery Validation Pluginの使い方
                    • GitHub - mieszkosabo/correttore

                      A proof of concept of a tree shakable Zod alternative. This library aims to have a 1:1 Zod compatible API, but with fine grain control over the final bundle size. This was done by a combination of Proxies and type-level programming. 🤓 You can read the blog post to learn how it works. // 1. import `initCorrettore` and features (validator) you want to use import { initCorrettore, string, email, min

                        GitHub - mieszkosabo/correttore
                      • Building Machine Learning Pipelines

                        Get full access to Building Machine Learning Pipelines and 60K+ other titles, with a free 10-day trial of O'Reilly. There are also live events, courses curated by job role, and more.

                          Building Machine Learning Pipelines
                        • pydantic入門

                          Models:公式 BaseModelを継承させて使う パースであってバリデーションじゃない...? pydantic is primarily a parsing library, not a validation library. In other words, pydantic guarantees the types and constraints of the output model, not the input data パースのためのライブラリであってバリデーションが目的のライブラリじゃないんです...? 出力データは保証するけど入力データはしないよ...?違いが難解(esoteric distinction)すぎる...と思う...が => Models - pydantic from pydantic import BaseModel class User(BaseMo

                            pydantic入門
                          • laravelでformのバリデーションをしよう!(カスタマイズあり) - Qiita

                            Laravelにはformバリデーションができる便利な機能があります!! 今回はそれを紹介していきます! 標準でもかなりの種類のバリデーションをサポートをしていますが、バリデーションを自分仕様にカスタマイズしたい時もあるので、カスタマイズバージョンも説明します! formバリデーションはどんなことができるか 例えば、こんなログイン画面があるとします ユーザーがメールアドレスを入力せずにログインボタンを押した場合は、 「emailは必須項目です。」というエラーが出ます。 仕様としてはこんな感じです! じゃあ次はどうやってバリデーションをするかみてみましょう〜 Laravelでformバリデーションをしよう!(標準装備編) バリデーションをする前のbladeをみる 先ほどのログイン画面のformの部分のbladeはこんな感じにしています。 (バリデーションを実装する前です。) <form cl

                              laravelでformのバリデーションをしよう!(カスタマイズあり) - Qiita
                            • GitHub - great-expectations/great_expectations: Always know what to expect from your data.

                              GX OSS is a data quality platform designed by and for data engineers. It helps you surface issues quickly and clearly while also making it easier to collaborate with nontechnical stakeholders. Its powerful technical tools start with Expectations: expressive and extensible unit tests for your data. As you create and run tests, your test definitions and results are automatically rendered in human-re

                                GitHub - great-expectations/great_expectations: Always know what to expect from your data.
                              • pandera documentation

                                • Cognito User Pool のサインインオプション設定について整理したい

                                  ユーザー名を Sign In に使う エイリアスとして、 email or phone_number or preferred_username を使える email or phone_number をエイリアスとして使うためには、検証済みである必要がある preferred_username をエイリアスとして使うためには、アカウントが Confirm されている必要がある これらは 1つ を選択ではなく、複数選択することが可能 例えば Sign In に username と email と preferred_username を使えるようにするとか username は、そのままユーザー名となる username は User Pool 内で一意である必要がある username は後から変更することはできない エイリアスとして使う属性と同じ username は使用できない? エ

                                    Cognito User Pool のサインインオプション設定について整理したい
                                  • 値オブジェクトの表明を使って検証を実装する方法 - Qiita

                                    本題に入る前に、値オブジェクトの表明を使って検証を実装する方法に、必要な検証(バリデーション)と表明(アサーション)の違いについて以下にまとめる。 検証(バリデーション) 以下のブログ記事によると、3種類のバリデーションがあるようです バリデーションには3種類のバリデーションがある 〜 セキュアなアプリケーションの構造 〜 が、日常的にはこのあたりは区別せずに「入力値の確認」と認識していると思います。厳密に表現すると「入力値が要件を満たしているか妥当性を確認すること」になります。Error, Defect, Fault, Failureの定義と解釈のエラー(Error)のカテゴリ。 以下は、バリデーションロジックの一例。値が満たすべき要件を確認するロジックを記述しますが、場合によっては複数の検証を組み合わせて一つの検証を行うことがあります。 object Validators { type

                                      値オブジェクトの表明を使って検証を実装する方法 - Qiita
                                    • Why the number input is the worst input - Stack Overflow

                                      [Ed. note: While we take some time to rest up over the holidays and prepare for next year, we are re-publishing our top ten posts for the year. Please enjoy our favorite work this year and we’ll see you in 2023.] I’ve been writing code for at least 15 years. While I’ve used a lot of technologies and built a lot of stuff over the years, the thing I have done the most is the front end, i.e. HTML, CS

                                        Why the number input is the worst input - Stack Overflow
                                      • Validate Email Addresses

                                        Ensuring you have data that makes sense is why Rails provides validations through the Active Model library, which underpins Active Record. Making sure you can email your users is one of the most important things to get right in your application, so you probably already have validation checks around your User#email attribute. Instead of… …inventing your own regular expression, or using this one fro

                                          Validate Email Addresses
                                        • GitHub - mizchi/lizod: lightweight zod-like validator

                                          // Pick validators for treeshake import { $any, $array, $boolean, $const, $enum, $intersection, $null, $number, $object, $opt, $regexp, $string, $symbol, $undefined, $union, $void, $record, type Infer, type Validator, } from "lizod"; const validate = $object({ name: $string, age: $number, familyName: $opt($string), abc: $enum(["a", "b", "c"]), nested: $object({ age: $number, }), static: $const("st

                                            GitHub - mizchi/lizod: lightweight zod-like validator