Skip to content

Utilities for integration between Natchez and Smithy4s

License

Notifications You must be signed in to change notification settings

Dwolla/natchez-smithy4s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natchez-Smithy4s

Utilities for integration between Natchez and Smithy4s.

Usage

Add the library to your build:

"com.dwolla" %% "natchez-smithy4s" % {version} 

Then create a file to annotate your shapes:

$version: "2.0"
namespace com.dwolla.example.smithy

use com.dwolla.tracing.smithy#traceable

apply CipherText @traceable
apply PlainText @traceable(redacted: "redacted plaintext value")

The @traceable trait can be applied without any modifier, in which case a natchez.TraceableValue instance will be generated that includes the actual value of the field.

If the @traceable trait is used with a redacted modifier, the TraceableValue instance will emit the passed string and not reference the actual value of the field in any way.

About

Utilities for integration between Natchez and Smithy4s

Resources

License

Stars

Watchers

Forks

Packages

No packages published