v2.0.0-snapshot.0 #329
miyaflowercat
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New Features
1. Property Type Validation:
string
,number
)."Invalid type for property 'age'. Expected integer, but received string."
age: { type: "integer" }
, and the Sonata request sendsage: "twenty"
, Kraken should reject the request with the appropriate error.2. Allowed Values Validation (Enumeration/Whitelist Validation):
bandwidth: { type: "integer", enum: [1000, 10000] }
enum
array.bandwidth: { type: "integer", enum: [1000, 10000] }
, and the Sonata request sendsbandwidth: "10"
, orbandwidth: 5000
, Kraken should reject the request.3. Mandatory Property Validation (Null/Missing Checks):
null
or missing in Sonata requests, causing issues downstream.required
field (or similar mechanism in your schema) in the mapping template to define mandatory properties.name: { type: "string", required: true }
null
(or equivalent for your data structure).null
, Kraken will:"Missing required property 'name'."
"Property 'name' cannot be null."
name: { type: "string", required: true }
, and the Sonata request either doesn't includename
or includesname: null
, Kraken should reject the request.By implementing these improvements, Kraken will be much more effective at validating Sonata requests, ensuring data quality and preventing downstream errors.
Full Changelog: https://github.com/mycloudnexus/kraken/commits/v2.0.0-snapshot.0
This discussion was created from the release v2.0.0-snapshot.0.
Beta Was this translation helpful? Give feedback.
All reactions