marigold-dev / marigold-dev/openapi-router

`Unbound value string_of_yojson` error during build

Open
#1 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
OCaml
Stars
9
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I'm getting the error `Unbound value string_of_yojson` when building this library from nix. According to the ppx_yojson_conv docs, the `Ppx_yojson_conv_lib.Yojson_conv.Primitives` module is meant to be opened at the top of a file using the ppx in order to make these unprefixed identifiers visible. I assume this is a change in the ppx that removed the prefixed identifiers, and since there's no upper bound in the opam file, my newer version of the ppx is considered compatible.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the opam file and the ppx_yojson_conv documentation, then reproduce the Nix build to confirm which dependency version causes the unbound identifier. Determine the compatible dependency constraint or identifier usage, and consider the issue done when the library builds successfully with the supported ppx_yojson_conv versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
backend-api-design, build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.