nickel-lang / json-schema-to-nickel

Convert JSON schemas into Nickel contracts
Apache License 2.0
32 stars 0 forks source link

Figure out library packaging #17

Closed vkleen closed 1 year ago

vkleen commented 1 year ago

At the moment the generated contracts assume that the predicates library can be imported as ./lib/predicates.ncl. That's... suboptimal. The problem is that we don't have an accepted general way of packaging Nickel libraries so that we could refer to them from the generated code. We should try to figure out a way of solving this packaging dilemma.

At the very least, we need to document that the generated contracts assume this filesystem layout.

vkleen commented 1 year ago

For now, we decided on inlining the predicate library into the generated contracts. This is the most usable option currently available.