<commit_before># ember-cli-openapi-generate

Generate Ember models from a openapi schema.

## Usage

```
$ ember openapi https://example.com/api/swagger.io
```
### Options

(Under development)

* `--cli` Only generate `ember g model` style output
* `--resource` Use resources rather than models (model, route, template).
* `--update` Overwrite existing models

## Rational

You can easily spin up a JSONAPI compliant Node/Express server backed by Mongo (along with other datastores) with `jsonapi-server`. By adding a `swagger` configuration option you can provide an OpenAPI schema for the models you've created. All in all there is a lot of duplication in creating JOI models for the server and then data models for Ember. This Ember addon means that you can automate the creation of the Ember models and optionally use it to update them when the API changes.

## References

* https://swagger.io
* https://github.com/OAI/OpenAPI-Specification

This README outlines the details of collaborating on this Ember addon.

## Installation

* `git clone <repository-url>` this repository
* `cd ember-cli-openapi-generate`
* `npm install`
* `bower install`

## Running

* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).

## Running Tests

* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
<commit_msg>Typ-oh.<commit_after># ember-cli-openapi-generate

Generate Ember models from a openapi schema.

## Usage

```
$ ember openapi https://example.com/api/swagger.io
```
### Options

(Under development)

* `--cli` Only generate `ember g model` style output
* `--resource` Use resources rather than models (model, route, template).
* `--update` Overwrite existing models

## Rationale

You can easily spin up a JSONAPI compliant Node/Express server backed by Mongo (along with other datastores) with `jsonapi-server`. By adding a `swagger` configuration option you can provide an OpenAPI schema for the models you've created. All in all there is a lot of duplication in creating JOI models for the server and then data models for Ember. This Ember addon means that you can automate the creation of the Ember models and optionally use it to update them when the API changes.

## References

* https://swagger.io
* https://github.com/OAI/OpenAPI-Specification

This README outlines the details of collaborating on this Ember addon.

## Installation

* `git clone <repository-url>` this repository
* `cd ember-cli-openapi-generate`
* `npm install`
* `bower install`

## Running

* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).

## Running Tests

* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

{'fraction_non_alphanumeric': 0.10708455762324519, 'fraction_numerical': 0.005223636957231472, 'mean_word_length': 4.310225303292894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2383160', 'n_tokens_mistral': 919, 'n_tokens_neox': 881, 'n_words': 372}