Class MqttSubscribeOutputValidator

java.lang.Object
software.amazon.smithy.model.validation.AbstractValidator
software.amazon.smithy.mqtt.traits.validators.MqttSubscribeOutputValidator
All Implemented Interfaces:
Validator

public final class MqttSubscribeOutputValidator extends AbstractValidator
Validates subscribe operation output.
  • Subscribe operations must use an event stream.
  • Subscribe operations must not have initial events.
  • Subscribe operations should not use eventHeader traits.
  • Constructor Details

    • MqttSubscribeOutputValidator

      public MqttSubscribeOutputValidator()
  • Method Details

    • validate

      public List<ValidationEvent> validate(Model model)
      Description copied from interface: Validator
      Validates a model and returns a list of validation events.
      Parameters:
      model - Model to validate.
      Returns:
      List of validation events.