並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 24 件 / 24件

新着順 人気順

json-schemaの検索結果1 - 24 件 / 24件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

json-schemaに関するエントリは24件あります。 JSONTypeScriptlibrary などが関連タグです。 人気エントリには 『JSON Schema で複雑な仕様の入力フォームの実装に立ち向かった話』などがあります。
  • JSON Schema で複雑な仕様の入力フォームの実装に立ち向かった話

    Ruby on Rails を用いたシステム上で入力フォームを実現する際、Rails が提供しているフォームヘルパーを利用した実装や、React や Vue によるコンポーネントの自前での実装が一般的に行われます。 ここで、職業で学生を選択した場合は学校名と学年、会社員を選択した場合は役職と年収を入力する...といった、条件分岐が大量に生まれる入力フォームを想像しましょう。 一般的な実装手法では、あるフォームの入力値が他のフォームに影響を与えるような、複雑で動的な入力フォームの実現をするために、大量の if 文を書く必要があります。 また、ユーザから送信された入力値の正しさをバリデーションするために、バックエンド側に同様の if 文を大量に書く必要が出てきます。 そこで私は、複雑な仕様の入力フォームの実装のための JSON Schema 活用方法および事例について紹介します。入力フォームの

      JSON Schema で複雑な仕様の入力フォームの実装に立ち向かった話
    • JSON Schema をクックパッドマートの商品登録画面に導入した話 - クックパッド開発者ブログ

      主にバックエンドのエンジニアとしてクックパッドマートの開発に携わっている塩出( @solt9029 )です。 美味しい食材をユーザにお届けするサービスであるクックパッドマートでは、日々街の販売店や地域の生産者が商品の登録を行っています。 商品を登録する際、販売者は消費期限をはじめとする様々な品質保証の情報を正確に入力する必要があります。 しかし、商品の種類や状態に応じて記載するべき品質保証の情報は異なるため、全項目が羅列されるフォームでは正確な入力が困難であり、販売者および商品の審査を行う社内の運用メンバに対して大きな負担をかけていました。 そこで、 JSON Schema を利用して複雑なフォームの出し分けを自動で制御し、またバックエンド側でのバリデーションも行うことが出来る仕組みを導入しました。 その結果、商品の種類や状態を選択するだけで、適切な品質保証の情報が自動的に入力され、必要な

        JSON Schema をクックパッドマートの商品登録画面に導入した話 - クックパッド開発者ブログ
      • JSONとJSON Schemaを改めて理解する / tokyo_study

        2023/3/3に発表した資料です。

          JSONとJSON Schemaを改めて理解する / tokyo_study
        • GitHub - 5alidz/tiny-schema-validator: JSON schema validator

          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 - 5alidz/tiny-schema-validator: JSON schema validator
          • JSON Schema や Ajv と TypeScript の型を紐づけるときの考え方や技術

            宣伝 4/25 に Encraft #2 サーバーとクライアントを結ぶ技術 というイベントで JSON Schema について喋る。いま現在進行形で IDL として JSON Schema, GraphQL, Protocol Buffer, zod, joi を使っているのでそれらを食べ比べる発表をするつもりだ(明らかに JS 上でしか動かないものを IDL と呼んでいいか不安になってきた)。そしてスキーマ駆動開発(code first なアプローチをスキーマ駆動と呼んでいいのか不安になってきた)を推進する上で、その中では大人の事情に柔軟に一番対応できるのは JSON Schema だという悲しい話をする。だが、私はこの JSON Schema を書き過ぎたせいで話したいことが大量にあり、JSON Schema の話だけで 1 時間超えそうな勢いなことに気づいた(発表時間は 20 分)。

              JSON Schema や Ajv と TypeScript の型を紐づけるときの考え方や技術
            • TypeScriptの型定義からJSON Schemaを生成するオンラインツールを作ってみた - Qiita

              先日、TypeScript + Tynderから始める宣言的検証生活の記事にて スキーマ検証ライブラリTynderを紹介いたしました。 Tynderとは Tynderは、TypeScriptのサブセット+独自の拡張文法から成るDSLによって 型の検査 単独の項目の必須・値の長さ・範囲や文字列パターンの検証 複数項目の相関や整合性検証の一部 (Union typeによる) を宣言的に行うことができます。 今回はTynderのスキーマ変換機能を使用して JSON Schema、GraphQL、Protobuf3 のスキーマを生成するオンラインツールを公開しました。 (GraphQL、Protobuf3については実験的機能です) TypeScript (Tynder DSL) → JSON Schema | GraphQL | Protobuf Converter Convert schema

                TypeScriptの型定義からJSON Schemaを生成するオンラインツールを作ってみた - Qiita
              • YAMLファイルはJSON Schemaでバリデーションしよう - Qiita

                試験環境であれば上記のような間違いも取り返しがつくのですが、 本番環境は大概デプロイ一発勝負であるが故に、ミスすると取り返しが付きません。 頑張ってチェックしても、人力をすり抜けるミスがありうるというのは非常に心臓に悪いです。 あらかじめ想定した型(スキーマ)がある以上、YAMLファイルもバリデーションすべきです。 YAMLのバリデーションに使える道具はあるか? YAMLのバリデーションというのは、そこまでメジャーな関心事ではないらしく、専用のメジャーなスキーマ技術がぱっと出てきません。 そこでいろいろ調べた結果、下記がとりあえず候補として上がりました。 JSON Schema 良い点 VS Code でサポートされている RedHat からリリースされているプラグインで可能です リアルタイムで補完と検証が効くので、かなり体験がいいです ツール、処理系、ノウハウが豊富 識者が多い スキーマ

                  YAMLファイルはJSON Schemaでバリデーションしよう - Qiita
                • GitHub - sinclairzx81/typebox: Json Schema Type Builder with Static Type Resolution for TypeScript

                  ┌────────────────────────────────┬─────────────────────────────┬────────────────────────────────┐ │ TypeBox │ TypeScript │ Json Schema │ │ │ │ │ ├────────────────────────────────┼─────────────────────────────┼────────────────────────────────┤ │ const T = Type.Any() │ type T = any │ const T = { } │ │ │ │ │ ├────────────────────────────────┼─────────────────────────────┼─────────────────────────────

                    GitHub - sinclairzx81/typebox: Json Schema Type Builder with Static Type Resolution for TypeScript
                  • pg_jsonschema: JSON Schema support for Postgres

                    Released on the Supabase platform today, pg_jsonschema is a Postgres extension which adds JSON Schema validation support for json and jsonb data types. The use-case for JSON validation# Despite Supabase being an SQL shop, even our most zealous relational data model advocates (begrudgingly) recognize some advantages to the document data model. Mainly, if some complex data will always be consumed to

                      pg_jsonschema: JSON Schema support for Postgres
                    • JSON Schema Store

                      JSON Schemas are available for the following {0} files: Auto completion In supported JSON editors like Visual Studio and Visual Studio Code, schema files can offer auto-completion and validation to make sure your JSON document is correct. See a list of editors, validators and other software supporting JSON schemas. Tooltips When a JSON editor supports schemas, tooltips can help inform the user abo

                        JSON Schema Store
                      • JSON Schemaのすゝめ - Qiita

                        こんには、@g0eです。 今日はPLAID AdventCalendar 2019 15日目としてJSON Schemaの紹介をしたいと思います。 (ちなみに業務ではまだ使ったことないです) JSON Schemaとは? json-schema.orgによると以下のようになっていて、annotateの訳が悩ましいですが、jsonドキュメントのフォーマット定義の規格みたいなものだと自分は理解しています。 JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. 何が便利なの? 色々な言語で実装されているので、 フロントエンドとサーバサイドなど、言語をまたいで同じ処理を実装できる1 複数言語で実装があるので、一度身につけると開発環境に依らず活用できる機会がある 色々な用途がある デー

                          JSON Schemaのすゝめ - Qiita
                        • GitHub - ThomasAribart/json-schema-to-ts: Infer TS types from JSON schemas 📝

                          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 - ThomasAribart/json-schema-to-ts: Infer TS types from JSON schemas 📝
                          • TypeScript, JSON Schema, Ajv の組み合わせを考える

                            この記事は sadnessOjisan Advent Calendar 2021 15 日目の記事です。書かれた日付は 1/3 です。 JSON Schema + Ajv + TypeScript という組み合わせは、スキーマ駆動開発に置いて一定の成果や評価がされていると思います。 しかし、これらの力を最大限に引き出そうとしたら、型周りで困ってしまったので何をどう困っているかのメモを残そうと思います。もし解決策を知っている方がいらっしゃりましたら教えてください。 そもそもこれらのツールはどういうものか JSON Schema FYI: https://json-schema.org/ JSON Schema は JSON の形を定義することができる規格・語彙です。 大きな特徴としてそれ自体も JSON であり、なんか良いです。 const data = { foo: 1, bar: "ab

                              TypeScript, JSON Schema, Ajv の組み合わせを考える
                            • GitHub - grantila/suretype: Typesafe JSON (Schema) validator

                              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 - grantila/suretype: Typesafe JSON (Schema) validator
                              • GitHub - vega/ts-json-schema-generator: Generate JSON schema from your Typescript sources

                                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 - vega/ts-json-schema-generator: Generate JSON schema from your Typescript sources
                                • GitHub - azu/create-validator-ts: Create JSON Schema validator from TypeScript.

                                  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/create-validator-ts: Create JSON Schema validator from TypeScript.
                                  • GitHub - supabase/pg_jsonschema: PostgreSQL extension providing JSON Schema validation

                                    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 - supabase/pg_jsonschema: PostgreSQL extension providing JSON Schema validation
                                    • JSON Schema で楽して良い感じの設定画面を作ろう! ~ Vue.js 編 ~ - Qiita

                                      { "name": "Customer", "idInjection": false, "http": { "path": "/foo/bar" } } LoopBack ではこのように JSON ファイルを利用してモデル定義を記述します。JSON による記述はわかりやすくていいですよね。しかし、コメントがないため、どのように設定を記述すればいいのかわかりません。たとえば、どのようなプロパティが利用可能なのか、型が何であるのか、必須項目はあるのか、といった情報がないのです。もちろんリファレンスを参照すればいいのですが、できれば入力画面そのものが教えてくれたほうがありがたいですよね。そこで、LoopBack 3 JSON Schemas という JSON Schema が提供されているので試してみましょう。JSON Schema を利用したい場合、以下のような記述を行います: $schema

                                        JSON Schema で楽して良い感じの設定画面を作ろう! ~ Vue.js 編 ~ - Qiita
                                      • VS CodeでJSON Schemaを使ったらCircleCI Configの編集がすごく楽になった | DevelopersIO

                                        こんにちは、CX事業本部 IoT事業部の若槻です。 今回は、Visual Studio Code(VS Code)で、CircleCI Config(.circleci/config.yml)に対してJSON Schemaによるバリデーション/アノテーションを効かせたら編集がすごく楽になったので、紹介をしたいと思います。 どう楽になったのか? VS Codeで下記のようなCircleCI Configを開いています。 .circleci/config.yml version: 2.1 executors: my-executor: docker: - image: circleci/node orbs: aws-cli: circleci/aws-cli@2.1.0 jobs: get_token: executor: my-executor steps: - checkout - aws

                                          VS CodeでJSON Schemaを使ったらCircleCI Configの編集がすごく楽になった | DevelopersIO
                                        • GitHub - jarvelov/vue-form-json-schema: Create forms using JSON schema. Bring your components!

                                          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 - jarvelov/vue-form-json-schema: Create forms using JSON schema. Bring your components!
                                          • GitHub - roziscoding/ts-transformer-ajv: TypeScript transformer to validate types in runtime using JSON Schema and AJV

                                            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 - roziscoding/ts-transformer-ajv: TypeScript transformer to validate types in runtime using JSON Schema and AJV
                                            • Kafka with AVRO vs., Kafka with Protobuf vs., Kafka with JSON Schema

                                              Kafka serialisation schemes — playing with AVRO, Protobuf, JSON Schema in Confluent Streaming Platform. The code for these examples available at https://github.com/saubury/kafka-serialization Apache Avro was has been the default Kafka serialisation mechanism for a long time. Confluent just updated their Kafka streaming platform with additional support for serialising data with Protocol buffers (or

                                                Kafka with AVRO vs., Kafka with Protobuf vs., Kafka with JSON Schema
                                              • FastifyのJSON SchemaからTypeScriptの型を生成して幸せになる

                                                追記 より簡潔に型を定義できるようにアップデートが入ったようです!(少なくともv3.24.1以降)。 こちらの私の記事はほぼ用無しですね。 ※当記事の内容はすでに古く、最新のFastifyでは動作しない可能性があります。ご注意ください。 最新版のFastifyではSchemaからの型生成をより簡潔に行うことができるので、公式Documentをご参考にください。 概要 FastifyのJSON SchemaからTypeScriptの型を生成したらNode.jsでも比較的型安全なAPIを実現でき幸せになれるのではと思いがんばりました。 サンプルコード: GitHub Fastifyの紹介 最近Expressの代替としてよく名前を聞くFastify。パフォーマンスの良さやビルトインのバリデーション機能が売りとされていますが、それらの売りを支えているのがJSON Schemaです。 Fastify

                                                  FastifyのJSON SchemaからTypeScriptの型を生成して幸せになる
                                                • GitHub - koxudaxi/datamodel-code-generator: Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.

                                                  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 - koxudaxi/datamodel-code-generator: Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
                                                  1

                                                  新着記事