Skip to content

HttpBindingsMissingValidator skips validating services when no http trait is yet applied #3119

@timocov

Description

@timocov

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.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions