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

Method schema

libs/@local/graph/temporal-versioning/src/interval.rs:636–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

634 E: ToSchema<'s>,
635{
636 fn schema() -> (&'static str, openapi::RefOr<openapi::Schema>) {
637 (
638 "Interval",
639 openapi::Schema::Object(
640 openapi::ObjectBuilder::new()
641 .property("start", openapi::Ref::from_schema_name(S::schema().0))
642 .required("start")
643 .property("end", openapi::Ref::from_schema_name(E::schema().0))
644 .required("end")
645 .build(),
646 )
647 .into(),
648 )
649 }
650}

Callers

nothing calls this directly

Calls 2

requiredMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected