MCPcopy Create free account
hub / github.com/hashintel/hash / Any

Class Any

libs/@local/graph/api/src/rest/mod.rs:711–711  ·  view source on GitHub ↗

This is a bit of hack, but basically, it adds a schema that is equivalent to "any value" `SchemaType::Value` indicates any generic JSON value.

Source from the content-addressed store, hash-verified

709 // This is a bit of hack, but basically, it adds a schema that is equivalent to "any value"
710 // `SchemaType::Value` indicates any generic JSON value.
711 struct Any;
712
713 impl ToSchema<'_> for Any {
714 fn schema() -> (&'static str, RefOr<Schema>) {

Calls

no outgoing calls