The initial implementation of the BehaviorScript model causes deserialization to fail. The *_schema properties are using $ref as a schema reference instead of an object reference, which doesn't seem to be supported by System.Text.Json yet.
Not sure what the best solution would be, but it works if you change them to either JsonElement, or a type like:
public class SchemaReference
{
[JsonPropertyName("$ref")]
public string Ref { get; set; }
}
Thanks. Fixed in version 1.2.0
Went for the JsonElement solution, as it is unclear now what the content of these properties is exactly. But now you can at least work with it.
The initial implementation of the
BehaviorScript
model causes deserialization to fail. The*_schema
properties are using$ref
as a schema reference instead of an object reference, which doesn't seem to be supported by System.Text.Json yet.Not sure what the best solution would be, but it works if you change them to either
JsonElement
, or a type like: