pub fn http_route_normal_form(
route: &HttpRouteContract,
types: &HashMap<String, Arc<TypeDecl>>,
) -> StringExpand description
The canonical normal form of one from http route, as a client sees it.
Every type is canonicalised as it appears on the wire (the same canon_type the
on call contract uses, so a record’s fields are sorted, predicates are a set and
a generic is substituted), in the namespace of the route’s own service. The
replies are a sorted set. What is not in it is what a client does not act on: a
handler’s body, a doc comment, the order of a record’s fields, the route’s CORS
policy and its plain-JSON Option mode (the client reads both forms).