johnstonskj / rust-atelier

Rust native core model for the AWS Smithy IDL
MIT License
77 stars 11 forks source link

[BUG] JsonWriter puts metadata as a child of 'shapes' but it should be top-level #34

Closed stevelr closed 3 years ago

stevelr commented 3 years ago

Per the JSON-AST specification, the merged "metadata" is supposed to be a top-level property of the json ast model, at the same level as "shapes", but JsonWriter puts it underneath "shapes" here: https://github.com/johnstonskj/rust-atelier/blob/293e8244dbff9dc550116485e5850f502e2e367a/atelier-json/src/writer.rs#L111

johnstonskj commented 3 years ago

Fixed in https://github.com/johnstonskj/rust-atelier/commit/6bdce1062e652660c438cfba7638470db33978c0 to release as 0.2.7