goadesign / goa.design Goto Github PK
View Code? Open in Web Editor NEWPublic website for goa
Home Page: https://goa.design
License: MIT License
Public website for goa
Home Page: https://goa.design
License: MIT License
Hello to All!
Extending goa with Plugin DSLs contains the invalid snippet in the section The DSL Roots. Look the diff below:
package modeldsl
// Root is the data structure built by the DSL.
type Root struct {
Models []*ModelDefinition
Types []*TypeDefinition
}
// dslRoot contains the instance of Root built by the DSL
var dslRoot = &Root{}
// IterateSets first returns the type definitions then the model definitions.
func (r *Root) IterateSets(it dslengine.SetIterator) {
- err := it(r.Types)
+ var types dslengine.DefinitionSet
+ for _, v := range r.Types {
+ types = append(types, v)
+ }
+ err := it(types)
if err != nil {
return // The errors will be reported to the user by the DSL engine.
}
- it(r.Models)
+
+ var models dslengine.DefintionSet
+ for _, v := range r.Models {
+ models = append(models, v)
+ }
+ it(models)
}
Thanks
so I think I have some sort of new error or at least I can’t find it
[9:04 PM]
I’m just following the tutorial from goa.design
new messages
[9:08 PM]
I create the directory for my code under $GOPATH/src/cellar
I cd into that directory
I put the example code under design/design.go
when I run goagen bootstrap -d design/design.go , I get the error:
/Users/jeremywhite/Code/go/src/design/design does not contain the design/design Go package
Now I know all I need to do is change this command to goadesign bootstrap -d cellar/design
and all is well… but this would confuse a newbie.
[9:08 PM]
so I think that might need a tweak in the docs, but maybe someone already saw this? it seems like an easy thing to find… so wanted other folks thoughts
I am going to take care of the italian translation of the website
Hi,
I noticed that the links to external URLs in the API DSL reference document do not work, e.g. https://goa.design/reference/goa/design/apidsl/#func-oauth2security-a-name-apidsl-oauth2security-a contains the following HTML:
<a href="a href="https://aaronparecki.com/2012/07/29/2/oauth2-simplified">https://aaronparecki.com/2012/07/29/2/oauth2-simplified</a">Aaron Parecki’s
writeup</a>
(Note the extra a href=
in the href
attribute)
When built from commit to other repos.
Come up with witty content.
I found a dead link on the Goa website. To reproduce:
Follow this link https://goa.design/reference/goa/design/apidsl/#func-oauth2security-a-name-apidsl-oauth2security-a
Click the link to Aaron Parecki's blog post.
Note: the URL bar is in Chinese (Japanese?), the Sad Gopher link is broken, and the URL is wacky.
Here's a copy of my URL:
https://goa.design/reference/goa/design/apidsl/a%20href=%22https:/aaronparecki.com/2012/07/29/2/oauth2-simplified%22%3Ehttps:/aaronparecki.com/2012/07/29/2/oauth2-simplified%3C/a
As you can see, the intended URL is concatenated with the base for the application. Assumedly, the intended URL was "https:/aaronparecki.com/2012/07/29/2/oauth2-simplified" but it's prefaced with the API base URL ("https://goa.design/reference/goa/design/apidsl").
@tchssk @ikawaha I added a new page https://goa.design/ja/implement/implementing/ and need help for the Japanese translation :)
Thank you!
The generated v3
code in cmd/svc/http.go
says to check goa.design/encoding
for reference, however it no longer exists.
My data structures require int64 fields, but using Goa's "Integer" type in the design.go file means everything is getting dumbed down to an int.
In trying to find a way around this, I searched the goa docs and clicked on the topic "Working with Data Types" which leads to a 404 error.
https://goa.design/reference/goa/design/apidsl/#func-routing-a-name-apidsl-routing-a has a reference under the Routing description to httptreemux
that doesn't resolve.
The tree mux hyperlink references: https://goa.design/reference/goa/design/apidsl/a%20href=%22https://godoc.org/github.com/dimfeld/httptreemux%22%3Ehttps://godoc.org/github.com/dimfeld/httptreemux%3C/a
Currently it points to obsolete files.
Near the bottom "design overview" links to missing https://goa.design/learn/design/overview
When new docs are generated it seems the appengine memcache needs to be cleared manually before they are live.
broken link to "APIDefinition" on https://goa.design/extend/generators/
@saniales I need help translating https://goa.design/it/implement/implementing/ into Italian :)
Also I noticed that https://goa.design/it/implement/error_handling wasn't translated (I just added the file - it was missing entirely).
A la Godoc
On android the navigate control , when pressed, delays for 1 or 2 seconds, before opening up a list from which the user can see the page names.
I like the way it works because it's not using side bars and other semi confusing GUI techniques.
But the 1 or 2 second delay made me think something was broken, and it's really disconcerting.
Add sections to both the "Design" and "Implement" contents describing the security support built into goa. Add header comments to all DSL functions that contain examples that show all the possible syntax for the generated "Reference".
The design section should focus on describing the abstractions and the DSL with examples. It should also explain the effects on the generated code.
The implement section should explain how to provide a "config" function, where it fits, what it should do etc.
If time allows it would be great for the docs to refer to examples from the examples repo. The idea for these is to be small in scope and to showcase specific functionality (e.g. an example to showcase JWT, another one for oauth2 etc.).
Using the old ".html" links still works but shouldn't.
https://goa.design/reference/goa/design/apidsl/#func-routing-a-name-apidsl-routing-a
Clicking "httptreemux" retuns 404
When i run
$ goagen --design=gorma/design gen --pkg-path=gorma/design
I got
../github.com/goadesign/gorma/relationalmodel.go:9:2: cannot find package "bitbucket.org/pkg/inflect" in any of:
/usr/local/go/src/bitbucket.org/pkg/inflect (from $GOROOT)
Do you have solution?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.