mirror of https://github.com/smithy-lang/smithy-rs
Deterministic operation generation (#70)
This commit is contained in:
parent
6676583bca
commit
075d40949a
|
@ -21,7 +21,7 @@ class ServiceGenerator(
|
|||
private val index = TopDownIndex.of(config.model)
|
||||
|
||||
fun render() {
|
||||
val operations = index.getContainedOperations(config.serviceShape)
|
||||
val operations = index.getContainedOperations(config.serviceShape).sortedBy { it.id }
|
||||
operations.map { operation ->
|
||||
writers.useShapeWriter(operation) { writer ->
|
||||
protocolGenerator.renderOperation(writer, operation)
|
||||
|
|
Loading…
Reference in New Issue