Skip to content

Commit

Permalink
Add Smithy.registerShapesAndTraits
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Aug 12, 2023
1 parent 76d3043 commit 99ec1a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/SotoSmithy/Core/Smithy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import Foundation
/// Management for SotoSmithy. Decode Smithy models with this and register new Trait types
public struct Smithy {
public init() {
Self.registerShapesAndTraits()
}

public static func registerShapesAndTraits() {
if Self.registeredShapes == false {
Model.registerShapeTypes([
// Simple shapes
Expand Down

0 comments on commit 99ec1a7

Please sign in to comment.