Skip to content

Commit

Permalink
Fix provider names and add to TraitService list
Browse files Browse the repository at this point in the history
  • Loading branch information
dhpiggott committed Aug 9, 2023
1 parent ea8a93e commit a8fd2b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ alloy.proto.ProtoNumTypeTrait$Provider
alloy.proto.ProtoReservedFieldsTrait$Provider
alloy.SimpleRestJsonTrait$Provider
alloy.StructurePatternTrait$Provider
alloy.UrlFormFlattenedTrait$Provider
alloy.UrlFormNameTrait$Provider
alloy.UncheckedExamplesTrait$Provider
alloy.UntaggedUnionTrait$Provider
alloy.UuidFormatTrait$Provider
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
import software.amazon.smithy.model.shapes.ShapeId;
import software.amazon.smithy.model.traits.AnnotationTrait;

public final class UrlFormFlattened extends AnnotationTrait {
public final class UrlFormFlattenedTrait extends AnnotationTrait {
public static ShapeId ID = ShapeId.from("alloy#urlFormFlattened");

public UrlFormFlattened() {
public UrlFormFlattenedTrait() {
super(ID, Node.objectNode());
}

public static final class Provider extends AnnotationTrait.Provider<UrlFormFlattened> {
public static final class Provider extends AnnotationTrait.Provider<UrlFormFlattenedTrait> {
public Provider() {
super(ID, (node) -> new UrlFormFlattened());
super(ID, (node) -> new UrlFormFlattenedTrait());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
import software.amazon.smithy.model.shapes.ShapeId;
import software.amazon.smithy.model.traits.AnnotationTrait;

public final class UrlFormName extends AnnotationTrait {
public final class UrlFormNameTrait extends AnnotationTrait {
public static ShapeId ID = ShapeId.from("alloy#urlFormName");

public UrlFormName() {
public UrlFormNameTrait() {
super(ID, Node.objectNode());
}

public static final class Provider extends AnnotationTrait.Provider<UrlFormName> {
public static final class Provider extends AnnotationTrait.Provider<UrlFormNameTrait> {
public Provider() {
super(ID, (node) -> new UrlFormName());
super(ID, (node) -> new UrlFormNameTrait());
}
}
}

0 comments on commit a8fd2b5

Please sign in to comment.