-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema doesn't respect Object #10
Comments
Yes, schemas can send any object to pulsar without validating the object options, but it must meet this one requirement, the object must be able to
class Person
{
public $id;
public $name;
public $age;
protected $test = 'ignore';
// ...
}
$person = new Person();
$person->id = 1;
$person->name = 'Tony';
$person->age = 1;
echo json_encode($person);
// output:{"id":1,"name":"Tony","age":1}
$producer->send($person); // The actual message sent is `{"id":1,"name":"Tony ","age":1}`
|
got it. |
I don't know what verification there is in the java library, can you tell me in detail? |
I am not so familiar with this java realization, but apparently this is here |
We are trying to work with schemas.
It appears that it sends any king of object, regardless of schema set.
For example, it will send your initial Person Object from the example without any errors.
The only thing it checks is schema itself, it must be valid (that's okay).
Is there any option to validate an object before send?
thanks
The text was updated successfully, but these errors were encountered: