metosin / metosin/compojure-api

Compojure 2.x should be backwards compatible with 1.x

Open
#462 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Clojure
Stars
1.1k
Forks
146
PR merge metrics
No merged PRs in 30d

Description

  • add back :format options to use ring-middleware-format
    • consider pulling out muuntaja api-middleware into another function
      • Q: if neither :format nor :formats is provided, which do coercion backend do we choose?
        • either need to break 1.x or 2.0.0-alphas
      • could make even more explicit with a keyword option explicitly naming backend
        • still, which to default to?
      • also need a way to set the default for namespaces we don't control via JVM properties
      • coercion defaults have changed with muuntaja. if we silently upgrade 1.x users to muuntaja, we should keep 1.x defaults.

Contributor guide

Open the contributing guide

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

The issue concerns restoring :format options, deciding how coercion defaults interact with Muuntaja, and preserving Compojure 1.x behavior. No files, tests, or entry points are named; first map these options and defaults in the repository, then verify that legacy configurations and namespace-level defaults remain supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.