Skip to content
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

Validate all json field present in the schema #574

Open
eugenemiretsky opened this issue Jul 5, 2019 · 0 comments
Open

Validate all json field present in the schema #574

eugenemiretsky opened this issue Jul 5, 2019 · 0 comments

Comments

@eugenemiretsky
Copy link

If a message is sent with additional keys that were not specific in the schema, the extra fields get omitted, and the message is written successfully.
The expected behavior would be for the request to fail until the schema is evolved.

Example request
{  
   "value_schema":"{ \"name\": \"Test\", \"type\": \"record\", \"namespace\": \"com.acme.avro\", \"fields\": [ { \"name\": \"customer_id\", \"type\": \"string\" } ] }",
   "records":[  
      {  
         "value":{  
            "extraFieldNotInSchema":"1234",
            "customer_id":"1107236512"
         }
      }
   ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant