8000 goa/TODO.md at cleanup_cellar · dominicm/goa · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 2 KB

TODO.md

File metadata and controls

59 lines (46 loc) · 2 KB

Things that are "on the list"

Versioning

  • gopkg.in "integration"

Generation Targets

  • Angular target that generates angular services for each resource.
  • Client target that generates an API client package and command line tool.
  • Docs target that generates swagger and / or praxis JSON docs.
  • Test target that generates API integration tests using gomega's ghttp package.
  • Generic target that takes the path to a Go package and the name of the "Generate" method and calls it passing in the metadata.

Integrations

  • NewRelic
  • Errbit
  • Plugin system a la Praxis

Enhancements

  • Make sure "type overload" works. I.e. Param("foo", Type, func() { Attribute(...) })
  • Documentation: DSL reference, middleware support more examples etc
  • Add examples to DSL including auto-generated examples
  • Praxis JSON to goa metadata generator
  • Implement response inline media type (with resource media type inheritance)

Praxis Mismatches

Notes

  • Load then validate
  • Render produces native types so that it works with JSON, YAML etc.
  • Reference should walk each attribute and look for a parent definition (consider embedded structs)

TODO

  • Configuration
  • Handle the case where an action handler did not write a response
  • Before / After filter? (is middleware enough?)
  • Handle attribute default value
  • Examples (same behavior as Load / Dump)
  • Default view is required
  • Rendering caching
  • Versioning
  • Encoding handlers (produces, consumes)
  • Rename "MediaType" to "DefaultMediaType" in Resource DSL
  • Remove support for multiple routes?
  • Default base path for resources built after resource name
  • // for absolute routes
  • Generate action route builder helpers (other than canonical href)
  • Equivalent to parse_href from praxis ResourceDefinition ?
  • Only use default medait ype if response template takes media type as arg (instead of hardcoded to 200)
  • Parameterize traits
  • Add swagger-like CollectionFormat
  • Add swagger-like support for security definitions
  • Add swagger-like support for deprecated, schemes
0