Skip to content

Help wanted to understand splitting up design files. #3660

Answered by raphael
RedMarcher asked this question in Q&A
Discussion options

You must be logged in to vote

I think the problem stems from the fact that there are two API definitions in the final set of files that make up the design package (I'm assuming goa gen is invoked on the top level design (design/api.go). The top level design API definition overrides the portal package one. I am not sure what the right semantic is for this project but there are multiple ways to resolve the issue:

  1. Remove the API definition from the design/api.go file - and only use the one defined in portal
  2. Remove the API definition from the portal package and move the security design to the top level package
  3. Create a 3rd file containing the API definition imported by both design/api.go and portal/api.go.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RedMarcher
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants