12 releases

0.2.7 Jul 12, 2021
0.2.6 Jun 25, 2021
0.2.4 May 21, 2021
0.2.2 Apr 30, 2021
0.1.1 Jun 30, 2020

#733 in Encoding

Download history 659/week @ 2024-06-19 1134/week @ 2024-06-26 528/week @ 2024-07-03 1233/week @ 2024-07-10 1391/week @ 2024-07-17 1521/week @ 2024-07-24 1725/week @ 2024-07-31 1038/week @ 2024-08-07 1142/week @ 2024-08-14 1450/week @ 2024-08-21 869/week @ 2024-08-28 1384/week @ 2024-09-04 1283/week @ 2024-09-11 1533/week @ 2024-09-18 1952/week @ 2024-09-25 1168/week @ 2024-10-02

6,073 downloads per month
Used in 37 crates (5 directly)

MIT license

425KB
8K SLoC

Atelier: crate atelier_json

Provides the ability to read and write Smithy models in the JSON AST representation.

crates.io docs.rs

Example

The following demonstrates the JsonReader to parse a model.

use atelier_core::io::read_model_from_string;
use atelier_json::JsonReader;

let mut reader = JsonReader::default();
let result = read_model_from_string(&mut reader, JSON);
if result.is_err() {
    println!("{:?}", result);
}
assert!(result.is_ok());
println!("{:#?}", result.unwrap());

Changes

Version 0.2.7

Version 0.2.6

  • Changed the ID on MemberShape from ShapeID to Identifier. This matches both the formal BNF for the Smithy IDL and the JSON AST usage.

Version 0.2.5

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 and HasTraits.

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 and ModelWriter.
    • removed representation method
    • added FILE_EXTENSION constant.

Version 0.1.3

  • Changes to the core API around ModelReader and ModelWriter.

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.

Dependencies

~5–12MB
~146K SLoC