Repository navigation
OnlyWorlds Unity SDK 0.59.0
An error names the size limit a write passed, on its own and in a bulk item's slot, and a NaN or an infinity in a
request body is sent as null, not as a quoted string. Parity with the TypeScript SDK 4.219.0 and 4.219.1. A minor
release because it adds public API (below).
Added
OWApiError.Limitnames the size limit a write passed, and three predicates read it:IsElementTooLarge
(element_bytes),IsElementTooManyLinks(element_link_ids) andIsExtensionsTooLarge(extensions_bytes), and
OWApiErrorBody.Limitfor a failed item of a bulk write. The OnlyWorlds API will addlimitto its three 422
invalid_requestrefusals for size (an element's size, its links, its extension fields), as a key of the API
document'sinfo.x-ow-limits, where the number and its unit are; the code,Paramand the message stay as they
are.Limitis an open string, so a value this release does not know is read and no predicate claims it. Until the
API sends the key,Limitis null and the predicates are false: read the message as before. Parity with the
TypeScript SDK 4.219.0, its test vector ported.
Changed
- A body JSON cannot hold is pinned to throw its own error, with nothing sent. A body that holds itself (a
dictionary inside itself) throws Newtonsoft'sJsonSerializationExceptionfrom the call before any request, never
anOWTransportError, which means a request that got no answer. The package already did this; a test now holds it.
Parity with the TypeScript SDK 4.219.1, its test vector ported.
Fixed
- NaN and the infinities in a request body are sent as
null, asJSON.stringifywrites them and the Godot and
Unreal SDKs send them. They were sent as the strings"NaN","Infinity"and"-Infinity", a string where a
number was due. What the SDK keeps and reads back (the cache) is written as before, and the folder writer still
refuses them.