Class NullabilityReportPlugin
java.lang.Object
software.amazon.smithy.build.plugins.NullabilityReportPlugin
- All Implemented Interfaces:
SmithyBuildPlugin
Generates a JSON report that contains a mapping of every structure member to
whether the member is considered nullable in v1 and v2 implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(PluginContext context) Executes the plugin, creating any number of artifacts.getName()Gets the name of the plugin.booleanPlugins can choose whether or not to create artifacts based on whether or not the projection encountered error or unsuppressed danger events.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.smithy.build.SmithyBuildPlugin
isSerial
-
Constructor Details
-
NullabilityReportPlugin
public NullabilityReportPlugin()
-
-
Method Details
-
getName
Description copied from interface:SmithyBuildPluginGets the name of the plugin.- Specified by:
getNamein interfaceSmithyBuildPlugin- Returns:
- Returns the name (e.g., "MyPlugin").
-
requiresValidModel
public boolean requiresValidModel()Description copied from interface:SmithyBuildPluginPlugins can choose whether or not to create artifacts based on whether or not the projection encountered error or unsuppressed danger events.By default plugins require that there are no errors or danger events for a given projected model.
- Specified by:
requiresValidModelin interfaceSmithyBuildPlugin- Returns:
- Returns true if the plugin should only be called if there are no error or unsuppressed danger violations for the projection.
-
execute
Description copied from interface:SmithyBuildPluginExecutes the plugin, creating any number of artifacts.- Specified by:
executein interfaceSmithyBuildPlugin- Parameters:
context- Plugin context for build execution.
-