0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

OpenAPIのスキーマファイルとSQL Severの型マッピング

Posted at

1. はじめに

  • SQL Serverのテーブルから取得したDTOをAPIとして返却するときに主な型のマッピングを定義したい

2. SQL Serverの型一覧

3. OpeiAPIのタイプ一覧

4. マッピング表

SQLServer型 OpenAPI type OpenAPI format
int integer -
smallint integer int32
float number float
decimal number double
varchar string -
char byte -
bit boolean -
date string date
datetime string date-time
  • OpenAPIのtype,formatは下記のスキーマ定義の値を指す
    image.png

5. 参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?