If you have the model where no operations have @http trait yet (e.g. when you're onboarding a new service), the validator doesn't report errors. For example, if you have a model:
$version: "2"
namespace test
use aws.protocols#restJson1
@restJson1
service TestService {
operations: [
Op
HttpOp
]
}
operation Op {}
//@http(method: "GET", uri: "/test")
operation HttpOp {}
and you run smithyBuild you won't get any errors reported. But once you uncomment @http line you will get an error for operation Op.
It looks like this was like that from the beginning because of this check.
If you have the model where no operations have
@httptrait yet (e.g. when you're onboarding a new service), the validator doesn't report errors. For example, if you have a model:and you run
smithyBuildyou won't get any errors reported. But once you uncomment@httpline you will get an error foroperation Op.It looks like this was like that from the beginning because of this check.