Skip to content

Use types to show that structured attrs are always JSON objects#14359

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
obsidiansystems:structured-attrs-always-object
Oct 27, 2025
Merged

Use types to show that structured attrs are always JSON objects#14359
Mic92 merged 1 commit intoNixOS:masterfrom
obsidiansystems:structured-attrs-always-object

Conversation

@Ericson2314
Copy link
Member

Motivation

Before we just had partial code accessing it. Now, we use nlohmann::json::object_t, which is a std::map, to enforce this by construction.

Context

Depends on #14351


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@Ericson2314 Ericson2314 requested a review from edolstra as a code owner October 25, 2025 17:26
@github-actions github-actions bot added new-cli Relating to the "nix" command fetching Networking with the outside (non-Nix) world, input locking labels Oct 25, 2025
@dpulls
Copy link

dpulls bot commented Oct 25, 2025

🎉 All dependencies have been resolved !

Before we just had partial code accessing it. Now, we use
`nlohmann::json::object_t`, which is a `std::map`, to enforce this by
construction.
@Ericson2314 Ericson2314 force-pushed the structured-attrs-always-object branch from 14fdd67 to 7e53afd Compare October 26, 2025 16:54
@Mic92 Mic92 added this pull request to the merge queue Oct 27, 2025
Merged via the queue into NixOS:master with commit d46504a Oct 27, 2025
16 checks passed
@Ericson2314 Ericson2314 deleted the structured-attrs-always-object branch October 28, 2025 22:08
@edolstra edolstra mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fetching Networking with the outside (non-Nix) world, input locking new-cli Relating to the "nix" command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants