Sha256: 059f8d008c962a7aae8bcd7551450f3dd39fb44016d4090bd573d5814aad6847

Contents?: true

Size: 1.04 KB

Versions: 10

Compression:

Stored size: 1.04 KB

Contents

# TODO

## Nice to have

- Cucumber Tests as docs (see https://relishapp.com/cucumber/cucumber/docs/);
- Fake Server (sinatra app generating fake responses based on the contracts);
- Optional "require" format for JSON Schema: # 'required': ['id', 'categorias', 'titulo', ...];
- Contract variables for easy writing. Such as: 'path': '/member/{id}';
- Add JSHint rake task to validate contracts syntax;
- Pretty output for hash difference (using something like [hashdiff](https://github.com/liufengyun/hashdiff)).
- A default header in the response marking the response as "mocked"
- Parameter matcher should use an idea of "subset" instead of matching all the parameters
- 'default' value to be used when it is present with an array of types
- Support 'null' attribute type
- Validate contract structure in a rake task. Then assume all contracts are valid.
- When a request is not OK (200), the body may not be a json. Add support to ignore the body.

## Assumptions

- JSON Schema references are stored in the 'definitions' attribute, in the schema's root element.

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pacto-0.3.1 TODO.md
pacto-0.3.0 TODO.md
pacto-0.3.0.pre TODO.md
pacto-0.2.5 TODO.md
pacto-0.2.4 TODO.md
pacto-0.2.3 TODO.md
pacto-0.2.2 TODO.md
pacto-0.2.1 TODO.md
pacto-0.2.0 TODO.md
pacto-0.1.1 TODO.md