Skip to content

Commit

Permalink
add type annotations to example pact code
Browse files Browse the repository at this point in the history
  • Loading branch information
imalsogreg committed Apr 28, 2023
1 parent 379e8e7 commit 8a7d09a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/cp/orders.pact
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
(defun with-order-status (order-id status)
"Check that order status is correct, returning details"
(with-read orders order-id {
"cusip" := cusip,
"status" := ostatus,
"qty" := qty,
"price" := price,
"seller" := seller,
"buyer" := buyer
"cusip" := cusip:string,
"status" := ostatus:string,
"qty" := qty:integer,
"price" := price:decimal,
"seller" := seller:string,
"buyer" := buyer:string
}
(enforce (= ostatus status) (format "order must be {}" [status]))
{"cusip": cusip,
Expand Down

0 comments on commit 8a7d09a

Please sign in to comment.