Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access nested data with register #27

Conversation

takanakahiko
Copy link
Contributor

fix #25

register で 入れ子データにアクセスできるようにしました。
配列にも対応しました。

他の変更

  • 入れ子データをテストするために example 内に compare 関数を実装した影響で、 exmple を試したときに example ディレクトリに余計な差分が出てしまうために example/generated ディレクトリを作って atgen の成果物がそこに生成されるようにし、gitignore するようにしました。 --outputDir の使用例にもなって良いかなと思いました。
  • ↑の影響で getRouter を参照できなくなったので、 router の実装を handler ディレクトに移しました
  • 現状 atgen が配列を返すエンドポイントに対応していないため、example の /{apiVersion}/people の返却値のスキーマを変更しました。

@takanakahiko takanakahiko requested a review from mizzy October 29, 2020 07:06
Copy link
Contributor

@mizzy mizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@takanakahiko takanakahiko merged commit 96998ad into aktsk:master Oct 30, 2020
@takanakahiko takanakahiko deleted the feature/access-nested-data-with-register branch October 30, 2020 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$register で入れ子のデータにアクセスしたい
2 participants