https://github.com/reaster/schema-gen-examples
schema-gen examples and tests
https://github.com/reaster/schema-gen-examples
code-generation java json kotlin schema-gen schema-generation swift xml-schema
Last synced: 5 months ago
JSON representation
schema-gen examples and tests
- Host: GitHub
- URL: https://github.com/reaster/schema-gen-examples
- Owner: reaster
- License: apache-2.0
- Created: 2017-12-07T16:14:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-11T05:53:37.000Z (almost 6 years ago)
- Last Synced: 2025-02-27T23:37:19.910Z (11 months ago)
- Topics: code-generation, java, json, kotlin, schema-gen, schema-generation, swift, xml-schema
- Language: Swift
- Size: 378 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# schema-gen-examples
[schema-gen](https://github.com/reaster/schema-gen) examples and tests including Java, Kotlin and Swift 4 code generation projects.
These examples are also meant to serve as templates for getting your own projects up and running quickly.
The generated source code is checked-in so you don't have to setup a build to see the output.
[](https://travis-ci.org/reaster/schema-gen-examples)
## Usage
To remove the checked-in generated code, use the genClean task:
```
swift-gpx> gradle genClean
```
To re-generate the code use the gen task:
```
swift-gpx> gradle gen
```
Finally as proof this code actualy works, run the tests:
```
schema-gen-examples> gradle test
```
Testing generated Swift code hasn't been integrated into the build yet. However, see the [swift-gpx/GpxPlayground.playground](https://github.com/reaster/schema-gen-examples/blob/master/swift-gpx/GpxPlayground.playground/Contents.swift) for an example of a quick way to test it in Xcode.