Sha256: 68f808f23e6e373719afcb299fde3d2532e07f237b060f8dd8941387b281315f

Contents?: true

Size: 972 Bytes

Versions: 3

Compression:

Stored size: 972 Bytes

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.

## Assumptions

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
pacto-0.1.0 TODO.md
pacto-0.0.1 TODO.md
contracts_api_test-0.0.1 TODO.md