Atelier: crate atelier_json
Provides the ability to read and write Smithy models in the JSON AST representation.
Example
The following demonstrates the JsonReader
to parse a model.
use read_model_from_string;
use JsonReader;
let mut reader = default;
let result = read_model_from_string;
if result.is_err
assert!;
println!;
Changes
Version 0.2.5
- New Feature: make a public api for converting Model to json-ast model.
- Added all snippets from section 17 of the specification as test cases.
- Fixed bugs in reader for handling member traits.
Version 0.2.4
- From core: Reorganized errors, made the naming and messages consistent and removed unused.
Version 0.2.3
- Supporting the core model builders which now use TryFrom instead of From.
- Support the "renames" collection added to service shapes in the abstract model.
- Using new shared atelier-test crate.
Version 0.2.2
- Updated due to trait API changes in core.
Version 0.2.1
- Changes based on new core traits
HasIdentity
andHasTraits
.
Version 0.2.0
- Major refactor after agreement on the separation of semantic model with Smithy team.
Version 0.1.4
- API changes for
ModelReader
andModelWriter
.- removed
representation
method - added
FILE_EXTENSION
constant.
- removed
Version 0.1.3
- Changes to the core API around
ModelReader
andModelWriter
.
Version 0.1.2
- Fixed issue in ID->Shape mapping.
- Fixed issue with missing
members
on structure and union shapes. - Added a set of JSON files from the AWS repository as parser tests.
- Renamed integration test names for easier reporting.
Version 0.1.1
- Able to read a JSON representation.
Version 0.1.0
- First release.
- Able to write the example weather service, constructed using the builder API.
TODO
None.