You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a field of type "message" is used it creates an inline reference which points to an exact version of the message schema. This makes validation problematic as the message isn't likely to always be the same version.
"ctx_cloud": {"type": "object","description": "The \"ctx_cloud\" is set by the server receiving the command and is generally only used internally for tracking and performance monitoring.","anyOf": [{"$ref": "#/definitions/cloud"}],"pbj": {"type": "message","rule": "single"}},
In order to make this still validate the field properly and allow for multiple version the definition itself should be an anyOf that allows for any version of the message type.
Using the curie you can get a reference for all versions of the message and generate that array. Php solves this with an interface (one without the version)... json schema has no way to describe "so long as it's a blah, accept it, regardless of version)".
The text was updated successfully, but these errors were encountered:
When a field of type "message" is used it creates an inline reference which points to an exact version of the message schema. This makes validation problematic as the message isn't likely to always be the same version.
inline definitions:
In order to make this still validate the field properly and allow for multiple version the definition itself should be an anyOf that allows for any version of the message type.
Using the curie you can get a reference for all versions of the message and generate that array. Php solves this with an interface (one without the version)... json schema has no way to describe "so long as it's a blah, accept it, regardless of version)".
The text was updated successfully, but these errors were encountered: