Deterministic operation generation (#70)

This commit is contained in:
Russell Cohen 2020-12-04 14:50:54 -05:00 committed by GitHub
parent 6676583bca
commit 075d40949a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)