aglio-theme-bluecase
v1.0.9
Published
Generate Scala case classes from Api-Blueprint specifications
Downloads
24
Maintainers
Readme
aglio-theme-bluecase
An Aglio Blueprint Renderer theme to generate Scala case classes from object
datastructure
entries found in api-blueprint specifications.
Optionally generate spray.io json DefaultJsonProtocol
support for case classes with --theme-spray-json true
STATUS
Works for my initial specific apib file. That apib file is moderately complex with several dozen object and array types with some types composed by referencing other types defined in the same apib file. I have not tested bluecase on any apib files in the wild, yet, except for api-blueprint examples.
INSTALL
via npmjs.org:
npm install -g aglio
npm install -g aglio-theme-bluecase
USE
aglio -i tmp/mystructs.apib -t bluecase -o -
aglio -i tmp/myapi.md -t bluecase -o tmp/MyGreatCases --theme-superclass MyGreatCases --theme-doubles lat,lon
aglio -i ../../test/example3.md -t bluecase -o src/main/scala/onextent/bluecase/examples/ex1/TxnerStuff.scala --theme-super-class TxnerStuff --theme-scala-package onextent.bluecase.examples.ex1 --theme-spray-json true
License
Copyright (c) 2016 Ed Sweeney
http://dgt.mit-license.org/