Skip to content

Commit

Permalink
Read awsQueryCompatible trait from metadata with tests (#4254)
Browse files Browse the repository at this point in the history
* Read awsQueryCompatible trait from  metadata with tests

* Fix linting
  • Loading branch information
eddy-aws authored Oct 25, 2022
1 parent 746f697 commit cea9422
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/bugfix-AWSQueryCompatible-f891b653.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "bugfix",
"category": "AWSQueryCompatible",
"description": "Read trait from metadata"
}
2 changes: 1 addition & 1 deletion lib/model/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function Api(api, options) {
property(this, 'documentation', api.documentation);
property(this, 'documentationUrl', api.documentationUrl);
}
property(this, 'awsQueryCompatible', api.awsQueryCompatible);
property(this, 'awsQueryCompatible', api.metadata.awsQueryCompatible);
}

/**
Expand Down
21 changes: 20 additions & 1 deletion test/service.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cea9422

Please sign in to comment.