0
APIゲートウェイで問題が発生しているモデルを作成しました。 誰かが私が問題にしたコードの場所に私を指摘できたら、私は非常に感謝します。JSON - 特定のスキーマに対して無効なモデルスキーマが指定されています
重要な点は、正しく構築されていないような配列を構築しようとしたことです。私はそれを実行するためにいくつかのドキュメントを使用していたが、私は失敗している。
ご協力いただきありがとうございます。私が持っていたい何
{
\t "$schema": "http://json-schema.org/draft-04/schema#",
\t "title": "GetUser",
\t "type": "object",
\t "properties": {
\t \t "user_id": {
\t \t \t "type": "number"
\t \t },
\t \t "shop_id": {
\t \t \t "type": "number"
\t \t },
\t \t "email": {
\t \t \t "type": "string"
\t \t },
\t \t "first_name": {
\t \t \t "type": "string"
\t \t },
\t \t "last_name": {
\t \t \t "type": "string"
\t \t },
\t \t "gender_title": {
\t \t \t "type": "string"
\t \t },
\t \t "language": {
\t \t \t "type": "string"
\t \t }
\t },
\t "birthday": {
\t \t "type": "array",
\t \t "items": {
\t \t \t "type": "object",
\t \t \t "properties": {
\t \t \t \t "day": {
\t \t \t \t \t "type": "number"
\t \t \t \t },
\t \t \t \t "month": {
\t \t \t \t \t "type": "string"
\t \t \t \t },
\t \t \t \t "year": {
\t \t \t \t \t "type": "number"
\t \t \t \t },
\t \t \t \t "loyality_club_points": {
\t \t \t \t \t "type": "number"
\t \t \t \t },
\t \t \t \t "levels_points": {
\t \t \t \t \t "type": "array",
\t \t \t \t \t "items": {
\t \t \t \t \t \t "points": {
\t \t \t \t \t \t \t "type": "number"
\t \t \t \t \t \t },
\t \t \t \t \t \t "order_tax": {
\t \t \t \t \t \t \t "type": "number"
\t \t \t \t \t \t }
\t \t \t \t \t }
\t \t \t \t }
\t \t \t }
\t \t }
\t }
}
あなたはJSONデータは非常にそれができる見てみたい方法の例を投稿することができますスキーマと照合されます。 https://jsonschema.netでどのスキーマが生成されているかを見て比較しようとすると、 – Darren